]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix dentry revalidation for NFSv4 referrals and mountpoint crossings
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 6 Mar 2008 17:34:59 +0000 (12:34 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 7 Mar 2008 19:35:41 +0000 (14:35 -0500)
commit98c5ff19db94332c016e8b6e8f5254a8a64a0ed5
treead22bf99412be3470ebe3a3dde51172826eb7a1a
parent6d2181c61217e702eb188d682f3becf97e5b6cb6
NFS: Fix dentry revalidation for NFSv4 referrals and mountpoint crossings

As long as the directory contents haven't changed, we should just let the
path walk proceed to cross the mountpoint. Apart from being an optimisation
in the case of 'nohide' mountpoint traversals, it also fixes an issue with
referrals: referral inodes don't have valid filehandles, so calling
nfs_revalidate_inode() on them is a bug.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c