Skip to content

Commit 7fc12c0

Browse files
committed
gfs2: Rename SDF_DEACTIVATING to SDF_KILL
jira LE-2169 Rebuild_History Non-Buildable kernel-4.18.0-553.27.1.el8_10 commit-author Andreas Gruenbacher <agruenba@redhat.com> commit e7beb8b 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 <agruenba@redhat.com> (cherry picked from commit e7beb8b) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 18c4ca8 commit 7fc12c0

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
@@ -1015,7 +1015,7 @@ static void delete_work_func(struct work_struct *work)
10151015
* step entirely.
10161016
*/
10171017
if (gfs2_try_evict(gl)) {
1018-
if (test_bit(SDF_DEACTIVATING, &sdp->sd_flags))
1018+
if (test_bit(SDF_KILL, &sdp->sd_flags))
10191019
goto out;
10201020
if (gfs2_queue_verify_evict(gl))
10211021
return;
@@ -1028,7 +1028,7 @@ static void delete_work_func(struct work_struct *work)
10281028
GFS2_BLKST_UNLINKED);
10291029
if (IS_ERR(inode)) {
10301030
if (PTR_ERR(inode) == -EAGAIN &&
1031-
!test_bit(SDF_DEACTIVATING, &sdp->sd_flags) &&
1031+
!test_bit(SDF_KILL, &sdp->sd_flags) &&
10321032
gfs2_queue_verify_evict(gl))
10331033
return;
10341034
} else {

fs/gfs2/glops.c

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

630630
if (!remote || sb_rdonly(sdp->sd_vfs) ||
631-
test_bit(SDF_DEACTIVATING, &sdp->sd_flags))
631+
test_bit(SDF_KILL, &sdp->sd_flags))
632632
return;
633633

634634
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
@@ -612,7 +612,7 @@ enum {
612612
SDF_REMOTE_WITHDRAW = 13, /* Performing remote recovery */
613613
SDF_WITHDRAW_RECOVERY = 14, /* Wait for journal recovery when we are
614614
withdrawing */
615-
SDF_DEACTIVATING = 15,
615+
SDF_KILL = 15,
616616
SDF_EVICTING = 16,
617617
SDF_FROZEN = 17,
618618
};

fs/gfs2/ops_fstype.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,9 +1761,9 @@ static void gfs2_kill_sb(struct super_block *sb)
17611761
/*
17621762
* Flush and then drain the delete workqueue here (via
17631763
* destroy_workqueue()) to ensure that any delete work that
1764-
* may be running will also see the SDF_DEACTIVATING flag.
1764+
* may be running will also see the SDF_KILL flag.
17651765
*/
1766-
set_bit(SDF_DEACTIVATING, &sdp->sd_flags);
1766+
set_bit(SDF_KILL, &sdp->sd_flags);
17671767
gfs2_flush_delete_work(sdp);
17681768
destroy_workqueue(sdp->sd_delete_wq);
17691769

fs/gfs2/super.c

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

570-
if (!test_bit(SDF_DEACTIVATING, &sdp->sd_flags))
570+
if (!test_bit(SDF_KILL, &sdp->sd_flags))
571571
gfs2_flush_delete_work(sdp);
572572

573573
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
@@ -121,7 +121,7 @@ static ssize_t status_show(struct gfs2_sbd *sdp, char *buf)
121121
test_bit(SDF_WITHDRAW_IN_PROG, &f),
122122
test_bit(SDF_REMOTE_WITHDRAW, &f),
123123
test_bit(SDF_WITHDRAW_RECOVERY, &f),
124-
test_bit(SDF_DEACTIVATING, &f),
124+
test_bit(SDF_KILL, &f),
125125
sdp->sd_log_error,
126126
rwsem_is_locked(&sdp->sd_log_flush_lock),
127127
sdp->sd_log_num_revoke,

0 commit comments

Comments
 (0)