Commit 097cca52 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher

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: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent af1abe11
...@@ -697,12 +697,12 @@ void gfs2_freeze_func(struct work_struct *work) ...@@ -697,12 +697,12 @@ void gfs2_freeze_func(struct work_struct *work)
} }
/** /**
* gfs2_freeze - prevent further writes to the filesystem * gfs2_freeze_super - prevent further writes to the filesystem
* @sb: the VFS structure for the filesystem * @sb: the VFS structure for the filesystem
* *
*/ */
static int gfs2_freeze(struct super_block *sb) static int gfs2_freeze_super(struct super_block *sb)
{ {
struct gfs2_sbd *sdp = sb->s_fs_info; struct gfs2_sbd *sdp = sb->s_fs_info;
int error; int error;
...@@ -742,12 +742,12 @@ static int gfs2_freeze(struct super_block *sb) ...@@ -742,12 +742,12 @@ static int gfs2_freeze(struct super_block *sb)
} }
/** /**
* gfs2_unfreeze - reallow writes to the filesystem * gfs2_thaw_super - reallow writes to the filesystem
* @sb: the VFS structure for the filesystem * @sb: the VFS structure for the filesystem
* *
*/ */
static int gfs2_unfreeze(struct super_block *sb) static int gfs2_thaw_super(struct super_block *sb)
{ {
struct gfs2_sbd *sdp = sb->s_fs_info; struct gfs2_sbd *sdp = sb->s_fs_info;
...@@ -1530,8 +1530,8 @@ const struct super_operations gfs2_super_ops = { ...@@ -1530,8 +1530,8 @@ const struct super_operations gfs2_super_ops = {
.evict_inode = gfs2_evict_inode, .evict_inode = gfs2_evict_inode,
.put_super = gfs2_put_super, .put_super = gfs2_put_super,
.sync_fs = gfs2_sync_fs, .sync_fs = gfs2_sync_fs,
.freeze_super = gfs2_freeze, .freeze_super = gfs2_freeze_super,
.thaw_super = gfs2_unfreeze, .thaw_super = gfs2_thaw_super,
.statfs = gfs2_statfs, .statfs = gfs2_statfs,
.drop_inode = gfs2_drop_inode, .drop_inode = gfs2_drop_inode,
.show_options = gfs2_show_options, .show_options = gfs2_show_options,
......
...@@ -188,7 +188,7 @@ static void signal_our_withdraw(struct gfs2_sbd *sdp) ...@@ -188,7 +188,7 @@ static void signal_our_withdraw(struct gfs2_sbd *sdp)
sdp->sd_jinode_gh.gh_flags |= GL_NOCACHE; sdp->sd_jinode_gh.gh_flags |= GL_NOCACHE;
gfs2_glock_dq(&sdp->sd_jinode_gh); gfs2_glock_dq(&sdp->sd_jinode_gh);
if (test_bit(SDF_FS_FROZEN, &sdp->sd_flags)) { if (test_bit(SDF_FS_FROZEN, &sdp->sd_flags)) {
/* Make sure gfs2_unfreeze works if partially-frozen */ /* Make sure gfs2_thaw_super works if partially-frozen */
flush_work(&sdp->sd_freeze_work); flush_work(&sdp->sd_freeze_work);
atomic_set(&sdp->sd_freeze_state, SFS_FROZEN); atomic_set(&sdp->sd_freeze_state, SFS_FROZEN);
thaw_super(sdp->sd_vfs); thaw_super(sdp->sd_vfs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment