Skip to content

Commit 097cca5

Browse files
author
Andreas Gruenbacher
committed
gfs2: Rename the {freeze,thaw}_super callbacks
Rename gfs2_freeze to gfs2_freeze_super and gfs2_unfreeze to gfs2_thaw_super to match the names of the corresponding super operations. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent af1abe1 commit 097cca5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

fs/gfs2/super.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -697,12 +697,12 @@ void gfs2_freeze_func(struct work_struct *work)
697697
}
698698

699699
/**
700-
* gfs2_freeze - prevent further writes to the filesystem
700+
* gfs2_freeze_super - prevent further writes to the filesystem
701701
* @sb: the VFS structure for the filesystem
702702
*
703703
*/
704704

705-
static int gfs2_freeze(struct super_block *sb)
705+
static int gfs2_freeze_super(struct super_block *sb)
706706
{
707707
struct gfs2_sbd *sdp = sb->s_fs_info;
708708
int error;
@@ -742,12 +742,12 @@ static int gfs2_freeze(struct super_block *sb)
742742
}
743743

744744
/**
745-
* gfs2_unfreeze - reallow writes to the filesystem
745+
* gfs2_thaw_super - reallow writes to the filesystem
746746
* @sb: the VFS structure for the filesystem
747747
*
748748
*/
749749

750-
static int gfs2_unfreeze(struct super_block *sb)
750+
static int gfs2_thaw_super(struct super_block *sb)
751751
{
752752
struct gfs2_sbd *sdp = sb->s_fs_info;
753753

@@ -1530,8 +1530,8 @@ const struct super_operations gfs2_super_ops = {
15301530
.evict_inode = gfs2_evict_inode,
15311531
.put_super = gfs2_put_super,
15321532
.sync_fs = gfs2_sync_fs,
1533-
.freeze_super = gfs2_freeze,
1534-
.thaw_super = gfs2_unfreeze,
1533+
.freeze_super = gfs2_freeze_super,
1534+
.thaw_super = gfs2_thaw_super,
15351535
.statfs = gfs2_statfs,
15361536
.drop_inode = gfs2_drop_inode,
15371537
.show_options = gfs2_show_options,

fs/gfs2/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static void signal_our_withdraw(struct gfs2_sbd *sdp)
188188
sdp->sd_jinode_gh.gh_flags |= GL_NOCACHE;
189189
gfs2_glock_dq(&sdp->sd_jinode_gh);
190190
if (test_bit(SDF_FS_FROZEN, &sdp->sd_flags)) {
191-
/* Make sure gfs2_unfreeze works if partially-frozen */
191+
/* 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);
194194
thaw_super(sdp->sd_vfs);

0 commit comments

Comments
 (0)