Skip to content

Commit cad1e15

Browse files
author
Andreas Gruenbacher
committed
gfs2: Rename SDF_{FS_FROZEN => FREEZE_INITIATOR}
Rename the SDF_FS_FROZEN flag to SDF_FREEZE_INITIATOR to indicate more clearly that the node that has this flag set is the initiator of the freeze. Signed-off-by: Andreas Gruenbacher <[email protected]
1 parent 9e4f095 commit cad1e15

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

fs/gfs2/incore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ enum {
600600
SDF_RORECOVERY = 7, /* read only recovery */
601601
SDF_SKIP_DLM_UNLOCK = 8,
602602
SDF_FORCE_AIL_FLUSH = 9,
603-
SDF_FS_FROZEN = 10,
603+
SDF_FREEZE_INITIATOR = 10,
604604
SDF_WITHDRAWING = 11, /* Will withdraw eventually */
605605
SDF_WITHDRAW_IN_PROG = 12, /* Withdraw is in progress */
606606
SDF_REMOTE_WITHDRAW = 13, /* Performing remote recovery */

fs/gfs2/super.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,8 @@ void gfs2_freeze_func(struct work_struct *work)
691691
gfs2_freeze_unlock(&freeze_gh);
692692
}
693693
deactivate_super(sb);
694-
clear_bit_unlock(SDF_FS_FROZEN, &sdp->sd_flags);
695-
wake_up_bit(&sdp->sd_flags, SDF_FS_FROZEN);
694+
clear_bit_unlock(SDF_FREEZE_INITIATOR, &sdp->sd_flags);
695+
wake_up_bit(&sdp->sd_flags, SDF_FREEZE_INITIATOR);
696696
return;
697697
}
698698

@@ -735,7 +735,7 @@ static int gfs2_freeze_super(struct super_block *sb)
735735
fs_err(sdp, "retrying...\n");
736736
msleep(1000);
737737
}
738-
set_bit(SDF_FS_FROZEN, &sdp->sd_flags);
738+
set_bit(SDF_FREEZE_INITIATOR, &sdp->sd_flags);
739739
out:
740740
mutex_unlock(&sdp->sd_freeze_mutex);
741741
return error;
@@ -760,7 +760,7 @@ static int gfs2_thaw_super(struct super_block *sb)
760760

761761
gfs2_freeze_unlock(&sdp->sd_freeze_gh);
762762
mutex_unlock(&sdp->sd_freeze_mutex);
763-
return wait_on_bit(&sdp->sd_flags, SDF_FS_FROZEN, TASK_INTERRUPTIBLE);
763+
return wait_on_bit(&sdp->sd_flags, SDF_FREEZE_INITIATOR, TASK_INTERRUPTIBLE);
764764
}
765765

766766
/**

fs/gfs2/sys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static ssize_t status_show(struct gfs2_sbd *sdp, char *buf)
111111
test_bit(SDF_RORECOVERY, &f),
112112
test_bit(SDF_SKIP_DLM_UNLOCK, &f),
113113
test_bit(SDF_FORCE_AIL_FLUSH, &f),
114-
test_bit(SDF_FS_FROZEN, &f),
114+
test_bit(SDF_FREEZE_INITIATOR, &f),
115115
test_bit(SDF_WITHDRAWING, &f),
116116
test_bit(SDF_WITHDRAW_IN_PROG, &f),
117117
test_bit(SDF_REMOTE_WITHDRAW, &f),

fs/gfs2/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static void signal_our_withdraw(struct gfs2_sbd *sdp)
187187
}
188188
sdp->sd_jinode_gh.gh_flags |= GL_NOCACHE;
189189
gfs2_glock_dq(&sdp->sd_jinode_gh);
190-
if (test_bit(SDF_FS_FROZEN, &sdp->sd_flags)) {
190+
if (test_bit(SDF_FREEZE_INITIATOR, &sdp->sd_flags)) {
191191
/* Make sure gfs2_thaw_super works if partially-frozen */
192192
flush_work(&sdp->sd_freeze_work);
193193
atomic_set(&sdp->sd_freeze_state, SFS_FROZEN);

0 commit comments

Comments
 (0)