[GFS2] Tidy up mount code.
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 1 Mar 2006 20:31:02 +0000 (15:31 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 1 Mar 2006 20:31:02 +0000 (15:31 -0500)
commitc9fd43078f5007c6ca6b3a9cd04c51a8f0e44a20
tree5a083b01e88afd591fdcce76ad14c4d7d028ac23
parente317ffcb7cc26c5e80cab97160a5e2761a4436ec
[GFS2] Tidy up mount code.

We no longer lookup ".gfs2_admin" in the root directory in order to
find it, but instead use the inode number given in the superblock.
Both the root directory and the admin directory are now looked up using
the same routine, so the redundant code is removed.

Also, there is no longer a reference to the root inode in the
GFS2 super block. When required this can be retreived via
sb->s_root->d_inode instead.

Assuming that we introduce a metadata filesystem type for GFS, then
this is a first step towards that goal.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/incore.h
fs/gfs2/inode.c
fs/gfs2/inode.h
fs/gfs2/ops_export.c
fs/gfs2/ops_fstype.c
fs/gfs2/ops_super.c
fs/gfs2/super.c
fs/gfs2/super.h