]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Don't require a filehandle to refresh the inode in nfs_prime_dcache()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 23 Feb 2015 23:51:32 +0000 (18:51 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 2 Mar 2015 04:23:07 +0000 (23:23 -0500)
commit47ff5d75950462673325a3f5e490be9d4540c081
tree26928a81290415cc0a8db037664da087963965d8
parentaaa249d83676072c37c6ae4d8350f5df1afd9fcc
NFS: Don't require a filehandle to refresh the inode in nfs_prime_dcache()

If the server does not return a valid set of attributes that we can
use to either create a file or refresh the inode, then there is no
value in calling nfs_prime_dcache().

However if we're just refreshing the inode using the attributes that
the server returned, then it shouldn't matter whether or not we have
a filehandle, as long as we check the fsid+fileid combination.

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