aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ops_super.c
diff options
context:
space:
mode:
authorAbhijith Das <adas@redhat.com>2006-08-25 12:13:37 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-08-25 17:19:55 -0400
commit8638460540749ddb1beca9e9a68d655a6fe6df65 (patch)
treee0b0a65798185a3f00912011906c551c02777982 /fs/gfs2/ops_super.c
parent5f88f1ea16a2fb5f125505053d1bfb7901a88c64 (diff)
[GFS2] Allow mounting of gfs2 and gfs2meta at the same time
This patch allows the simultaneous mounting of gfs2meta and gfs2 filesystems. A restriction however is that a gfs2meta fs may only be mounted if its corresponding gfs2 filesystem is also mounted. Also, a gfs2 filesystem cannot be unmounted before its gfs2meta filesystem. Signed-off-by: Abhijith Das <adas@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_super.c')
-rw-r--r--fs/gfs2/ops_super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/ops_super.c b/fs/gfs2/ops_super.c
index 2e392c994ab1..18ed18c729e8 100644
--- a/fs/gfs2/ops_super.c
+++ b/fs/gfs2/ops_super.c
@@ -78,6 +78,9 @@ static void gfs2_put_super(struct super_block *sb)
78 if (!sdp) 78 if (!sdp)
79 return; 79 return;
80 80
81 if (!strncmp(sb->s_type->name, "gfs2meta", 8))
82 return; /* meta fs. don't do nothin' */
83
81 /* Unfreeze the filesystem, if we need to */ 84 /* Unfreeze the filesystem, if we need to */
82 85
83 mutex_lock(&sdp->sd_freeze_lock); 86 mutex_lock(&sdp->sd_freeze_lock);