]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv3: Use the readdir fileid as the mounted-on-fileid
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 23 Feb 2015 21:15:00 +0000 (16:15 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 2 Mar 2015 04:23:07 +0000 (23:23 -0500)
commitf7356041ee2500711f73243719d803a85122f1cf
tree2fb243daed982b98ef8fe8b53857bccde05921bb
parent0db0738a7183e1f6077fd890f9db17665861ddce
NFSv3: Use the readdir fileid as the mounted-on-fileid

When we call readdirplus, set the fileid normally returned by readdir
as the mounted-on-fileid, since that is commonly the case if there is
a mountpoint. To ensure that we get it right, we only set the flag if
the readdir fileid differs from the one returned in the readdirplus
attributes.

This again means that we can avoid the issues described in commit
0446c670ddd05 ("NFS: Fix use of nfs_attr_use_mounted_on_fileid()"),
which only fixed NFSv4.

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