@@ -118,7 +118,7 @@ __acquires(&sdp->sd_ail_lock)
118118 }
119119 }
120120
121- if (gfs2_withdrawing_or_withdrawn (sdp )) {
121+ if (gfs2_withdrawn (sdp )) {
122122 gfs2_remove_from_ail (bd );
123123 continue ;
124124 }
@@ -834,7 +834,7 @@ void gfs2_write_log_header(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
834834 struct super_block * sb = sdp -> sd_vfs ;
835835 u64 dblock ;
836836
837- if (gfs2_withdrawing_or_withdrawn (sdp ))
837+ if (gfs2_withdrawn (sdp ))
838838 return ;
839839
840840 page = mempool_alloc (gfs2_page_pool , GFP_NOIO );
@@ -981,7 +981,7 @@ static void empty_ail1_list(struct gfs2_sbd *sdp)
981981 gfs2_ail1_wait (sdp );
982982 empty = gfs2_ail1_empty (sdp , 0 );
983983
984- if (gfs2_withdrawing_or_withdrawn (sdp ))
984+ if (gfs2_withdrawn (sdp ))
985985 break ;
986986 }
987987}
@@ -1044,7 +1044,7 @@ void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, u32 flags)
10441044 * Do this check while holding the log_flush_lock to prevent new
10451045 * buffers from being added to the ail via gfs2_pin()
10461046 */
1047- if (gfs2_withdrawing_or_withdrawn (sdp ) ||
1047+ if (gfs2_withdrawn (sdp ) ||
10481048 !test_bit (SDF_JOURNAL_LIVE , & sdp -> sd_flags ))
10491049 goto out ;
10501050
@@ -1094,22 +1094,22 @@ void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, u32 flags)
10941094 goto out_withdraw ;
10951095
10961096 gfs2_ordered_write (sdp );
1097- if (gfs2_withdrawing_or_withdrawn (sdp ))
1097+ if (gfs2_withdrawn (sdp ))
10981098 goto out_withdraw ;
10991099 lops_before_commit (sdp , tr );
1100- if (gfs2_withdrawing_or_withdrawn (sdp ))
1100+ if (gfs2_withdrawn (sdp ))
11011101 goto out_withdraw ;
11021102 if (sdp -> sd_jdesc )
11031103 gfs2_log_submit_bio (& sdp -> sd_jdesc -> jd_log_bio , REQ_OP_WRITE );
1104- if (gfs2_withdrawing_or_withdrawn (sdp ))
1104+ if (gfs2_withdrawn (sdp ))
11051105 goto out_withdraw ;
11061106
11071107 if (sdp -> sd_log_head != sdp -> sd_log_flush_head ) {
11081108 log_write_header (sdp , flags );
11091109 } else if (sdp -> sd_log_tail != sdp -> sd_log_flush_tail && !sdp -> sd_log_idle ) {
11101110 log_write_header (sdp , flags );
11111111 }
1112- if (gfs2_withdrawing_or_withdrawn (sdp ))
1112+ if (gfs2_withdrawn (sdp ))
11131113 goto out_withdraw ;
11141114 lops_after_commit (sdp , tr );
11151115
@@ -1127,7 +1127,7 @@ void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, u32 flags)
11271127 if (!(flags & GFS2_LOG_HEAD_FLUSH_NORMAL )) {
11281128 if (!sdp -> sd_log_idle ) {
11291129 empty_ail1_list (sdp );
1130- if (gfs2_withdrawing_or_withdrawn (sdp ))
1130+ if (gfs2_withdrawn (sdp ))
11311131 goto out_withdraw ;
11321132 log_write_header (sdp , flags );
11331133 }
@@ -1296,7 +1296,7 @@ int gfs2_logd(void *data)
12961296
12971297 set_freezable ();
12981298 while (!kthread_should_stop ()) {
1299- if (gfs2_withdrawing_or_withdrawn (sdp ))
1299+ if (gfs2_withdrawn (sdp ))
13001300 break ;
13011301
13021302 /* Check for errors writing to the journal */
@@ -1333,7 +1333,7 @@ int gfs2_logd(void *data)
13331333 gfs2_ail_flush_reqd (sdp ) ||
13341334 gfs2_jrnl_flush_reqd (sdp ) ||
13351335 sdp -> sd_log_error ||
1336- gfs2_withdrawing_or_withdrawn (sdp ) ||
1336+ gfs2_withdrawn (sdp ) ||
13371337 kthread_should_stop (),
13381338 t );
13391339 }
0 commit comments