NFS: Use raw NFS access mask in nfs4_opendata_access()
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 25 Jul 2017 20:10:47 +0000 (16:10 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 26 Jul 2017 20:53:57 +0000 (16:53 -0400)
commit1e6f209515a08de29ec53b653eac73b50efd949c
tree5fbb6452e99d9c30de647e697eff178d9cd38663
parent1ebf980127924c639e2b85c08468311ba1c95b70
NFS: Use raw NFS access mask in nfs4_opendata_access()

Commit bd8b2441742b ("NFS: Store the raw NFS access mask in the inode's
access cache") changed how the access results are stored after an
access() call.  An NFS v4 OPEN might have access bits returned with the
opendata, so we should use the NFS4_ACCESS values when determining the
return value in nfs4_opendata_access().

Fixes: bd8b2441742b ("NFS: Store the raw NFS access mask in the inode's
access cache")
Reported-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Tested-by: Takashi Iwai <tiwai@suse.de>
fs/nfs/nfs4proc.c