Skip to content

Commit e7beb8b

Browse files
author
Andreas Gruenbacher
committed
gfs2: Rename SDF_DEACTIVATING to SDF_KILL
Rename the SDF_DEACTIVATING flag to SDF_KILL to make it more obvious that this relates to the kill_sb filesystem operation. Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 3c69c43 commit e7beb8b

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

fs/gfs2/glock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ static void delete_work_func(struct work_struct *work)
10221022
* step entirely.
10231023
*/
10241024
if (gfs2_try_evict(gl)) {
1025-
if (test_bit(SDF_DEACTIVATING, &sdp->sd_flags))
1025+
if (test_bit(SDF_KILL, &sdp->sd_flags))
10261026
goto out;
10271027
if (gfs2_queue_verify_evict(gl))
10281028
return;
@@ -1035,7 +1035,7 @@ static void delete_work_func(struct work_struct *work)
10351035
GFS2_BLKST_UNLINKED);
10361036
if (IS_ERR(inode)) {
10371037
if (PTR_ERR(inode) == -EAGAIN &&
1038-
!test_bit(SDF_DEACTIVATING, &sdp->sd_flags) &&
1038+
!test_bit(SDF_KILL, &sdp->sd_flags) &&
10391039
gfs2_queue_verify_evict(gl))
10401040
return;
10411041
} else {

fs/gfs2/glops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static void iopen_go_callback(struct gfs2_glock *gl, bool remote)
637637
struct gfs2_sbd *sdp = gl->gl_name.ln_sbd;
638638

639639
if (!remote || sb_rdonly(sdp->sd_vfs) ||
640-
test_bit(SDF_DEACTIVATING, &sdp->sd_flags))
640+
test_bit(SDF_KILL, &sdp->sd_flags))
641641
return;
642642

643643
if (gl->gl_demote_state == LM_ST_UNLOCKED &&

fs/gfs2/incore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ enum {
606606
SDF_REMOTE_WITHDRAW = 13, /* Performing remote recovery */
607607
SDF_WITHDRAW_RECOVERY = 14, /* Wait for journal recovery when we are
608608
withdrawing */
609-
SDF_DEACTIVATING = 15,
609+
SDF_KILL = 15,
610610
SDF_EVICTING = 16,
611611
SDF_FROZEN = 17,
612612
};

fs/gfs2/ops_fstype.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,9 +1786,9 @@ static void gfs2_kill_sb(struct super_block *sb)
17861786
/*
17871787
* Flush and then drain the delete workqueue here (via
17881788
* destroy_workqueue()) to ensure that any delete work that
1789-
* may be running will also see the SDF_DEACTIVATING flag.
1789+
* may be running will also see the SDF_KILL flag.
17901790
*/
1791-
set_bit(SDF_DEACTIVATING, &sdp->sd_flags);
1791+
set_bit(SDF_KILL, &sdp->sd_flags);
17921792
gfs2_flush_delete_work(sdp);
17931793
destroy_workqueue(sdp->sd_delete_wq);
17941794

fs/gfs2/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ void gfs2_make_fs_ro(struct gfs2_sbd *sdp)
546546
{
547547
int log_write_allowed = test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags);
548548

549-
if (!test_bit(SDF_DEACTIVATING, &sdp->sd_flags))
549+
if (!test_bit(SDF_KILL, &sdp->sd_flags))
550550
gfs2_flush_delete_work(sdp);
551551

552552
if (!log_write_allowed && current == sdp->sd_quotad_process)

fs/gfs2/sys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static ssize_t status_show(struct gfs2_sbd *sdp, char *buf)
118118
test_bit(SDF_WITHDRAW_IN_PROG, &f),
119119
test_bit(SDF_REMOTE_WITHDRAW, &f),
120120
test_bit(SDF_WITHDRAW_RECOVERY, &f),
121-
test_bit(SDF_DEACTIVATING, &f),
121+
test_bit(SDF_KILL, &f),
122122
sdp->sd_log_error,
123123
rwsem_is_locked(&sdp->sd_log_flush_lock),
124124
sdp->sd_log_num_revoke,

0 commit comments

Comments
 (0)