NFSv4.1: allow nfs_fhget to succeed with mounted on fileid
authorAndy Adamson <andros@netapp.com>
Mon, 13 Jun 2011 22:25:56 +0000 (18:25 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 15 Jun 2011 15:24:29 +0000 (11:24 -0400)
commit533eb4611c9eea53072eb6a61d5a6393b6a77ed7
treeadb2b4cbfe85689979d2cf971b65ebcd0d383d56
parent1d92a08da23848a38eece4df7eaa4e8ec0e6c699
NFSv4.1: allow nfs_fhget to succeed with mounted on fileid

Commit 28331a46d88459788c8fca72dbb0415cd7f514c9 "Ensure we request the
ordinary fileid when doing readdirplus"
changed the meaning of NFS_ATTR_FATTR_FILEID which used to be set when
FATTR4_WORD1_MOUNTED_ON_FILED was requested.

Allow nfs_fhget to succeed with only a mounted on fileid when crossing
a mountpoint or a referral.

Ask for the fileid of the absent file system if mounted_on_fileid is not
supported.

Signed-off-by: Andy Adamson <andros@netapp.com>
cc:stable@kernel.org [2.6.39]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c
fs/nfs/internal.h
fs/nfs/nfs4proc.c