]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/gfs2/export.c
[GFS2] Remove i_mode passing from NFS File Handle
authorWendy Cheng <wcheng@redhat.com>
Wed, 27 Jun 2007 21:07:53 +0000 (17:07 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 9 Jul 2007 07:24:11 +0000 (08:24 +0100)
commit35dcc52e3a916184b145fd840250244b81004200
treef3ab5a4094a676967e668fb407c0296a1150264a
parentbb9bcf061660661c57ddcf31337529f82414b937
[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>
fs/gfs2/inode.c
fs/gfs2/inode.h
fs/gfs2/ops_export.c
fs/gfs2/rgrp.c