]> 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)
commitaaa249d83676072c37c6ae4d8350f5df1afd9fcc
tree2fb243daed982b98ef8fe8b53857bccde05921bb
parent0c03ad3edb8fb3efdbffd308ac0e053a3cbc2719
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
e8c159632e132 ("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