]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69bd49756a55b7380df24d7d2b816554f1fe4484
tree5fbb6452e99d9c30de647e697eff178d9cd38663
parent41449290ebab3b0a0aa3beec5d7778a3b3f72586
NFS: Use raw NFS access mask in nfs4_opendata_access()

Commit aa5209f9dac8 ("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: aa5209f9dac8 ("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