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)
commit1ae04b252351188cfa66af1b8b0628512a72dd7b
tree2fb243daed982b98ef8fe8b53857bccde05921bb
parent6c441c254eea2354d686be7f5544bcd79fb6a61f
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
2ef47eb1aee17 ("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