]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fixes for nfs4_bitmask_adjust()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 8 Feb 2021 13:49:32 +0000 (08:49 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Feb 2021 16:09:53 +0000 (11:09 -0500)
commit5171e287278857273162c1f4639f134c30197086
treebeaf3600ab6333303577c55913d3fb463018cf1a
parentcde47f9f9ed97dfa40b2fcbd952d47cdf74a861b
NFSv4: Fixes for nfs4_bitmask_adjust()

We don't want to ask for the ACL in a WRITE reply, since we don't have
a preallocated buffer.

Instead of checking NFS_INO_INVALID_ACCESS, which is really about
managing the access cache, we should look at the value of
NFS_INO_INVALID_OTHER. Also ensure we assign the mode, owner and
owner_group flags to the correct bit mask.

Finally, fix up the check for NFS_INO_INVALID_CTIME to retrieve the
ctime, and add a check for NFS_INO_INVALID_CHANGE.

Fixes: ec237caec7bd ("NFSv4: make cache consistency bitmask dynamic")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c