NFSv4.1: allow nfs_fhget to succeed with mounted on fileid
commit1c1b19ee3309e7462094a42adfad24e6cada0a20
authorAndy Adamson <andros@netapp.com>
Mon, 13 Jun 2011 22:25:56 +0000 (13 18:25 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:15:20 +0000 (8 23:15 -0700)
tree373fdceadd372fe69ea2aa827197ac85f6dbdd5c
parent52b0d3944350446f8ffd96f5e711ff4fa4142ba4
NFSv4.1: allow nfs_fhget to succeed with mounted on fileid

commit 533eb4611c9eea53072eb6a61d5a6393b6a77ed7 upstream.

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>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/inode.c
fs/nfs/internal.h
fs/nfs/nfs4proc.c