diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-01 15:31:02 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-01 15:31:02 -0500 |
commit | c9fd43078f5007c6ca6b3a9cd04c51a8f0e44a20 (patch) | |
tree | 5a083b01e88afd591fdcce76ad14c4d7d028ac23 /fs/gfs2/inode.h | |
parent | e317ffcb7cc26c5e80cab97160a5e2761a4436ec (diff) | |
download | lwn-c9fd43078f5007c6ca6b3a9cd04c51a8f0e44a20.tar.gz lwn-c9fd43078f5007c6ca6b3a9cd04c51a8f0e44a20.zip |
[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>
Diffstat (limited to 'fs/gfs2/inode.h')
-rw-r--r-- | fs/gfs2/inode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.h b/fs/gfs2/inode.h index 069f0e21db6d..c3fa6cfce169 100644 --- a/fs/gfs2/inode.h +++ b/fs/gfs2/inode.h @@ -35,7 +35,7 @@ void gfs2_inode_min_init(struct gfs2_inode *ip, unsigned int type); int gfs2_inode_refresh(struct gfs2_inode *ip); int gfs2_inode_get(struct gfs2_glock *i_gl, - struct gfs2_inum *inum, int create, + const struct gfs2_inum *inum, int create, struct gfs2_inode **ipp); void gfs2_inode_hold(struct gfs2_inode *ip); void gfs2_inode_put(struct gfs2_inode *ip); |