diff options
author | Wendy Cheng <wcheng@redhat.com> | 2007-06-27 17:07:53 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2007-07-09 03:24:11 -0400 |
commit | 35dcc52e3a916184b145fd840250244b81004200 (patch) | |
tree | f3ab5a4094a676967e668fb407c0296a1150264a /fs/gfs2/inode.h | |
parent | bb9bcf061660661c57ddcf31337529f82414b937 (diff) |
[GFS2] Remove i_mode passing from NFS File Handle
GFS2 has been passing i_mode within NFS File Handle. Other than the
wrong assumption that there is always room for this extra 16 bit value,
the current gfs2_get_dentry doesn't really need the i_mode to work
correctly. Note that GFS2 NFS code does go thru the same lookup code
path as direct file access route (where the mode is obtained from name
lookup) but gfs2_get_dentry() is coded for different purpose. It is not
used during lookup time. It is part of the file access procedure call.
When the call is invoked, if on-disk inode is not in-memory, it has to
be read-in. This makes i_mode passing a useless overhead.
Signed-off-by: S. Wendy Cheng <wcheng@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.h')
-rw-r--r-- | fs/gfs2/inode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/inode.h b/fs/gfs2/inode.h index 3268a2fed672..4517ac82c01c 100644 --- a/fs/gfs2/inode.h +++ b/fs/gfs2/inode.h | |||
@@ -47,6 +47,7 @@ static inline void gfs2_inum_out(const struct gfs2_inode *ip, | |||
47 | 47 | ||
48 | 48 | ||
49 | void gfs2_inode_attr_in(struct gfs2_inode *ip); | 49 | void gfs2_inode_attr_in(struct gfs2_inode *ip); |
50 | void gfs2_set_iop(struct inode *inode); | ||
50 | struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type, | 51 | struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type, |
51 | u64 no_addr, u64 no_formal_ino); | 52 | u64 no_addr, u64 no_formal_ino); |
52 | struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr); | 53 | struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr); |