OSDN Git Service

NFSv4: Don't modify the change attribute cached in the inode
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 12 Apr 2021 16:15:50 +0000 (12:15 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 13 Apr 2021 14:04:05 +0000 (10:04 -0400)
commit993e2d4bd9efc41f0943de39e9374ffdfde62e87
tree2bb64ddf7fec852900867bb2a1ebd7390d11dfad
parent57a789a1dee39e1625956d7dea4f7637f9160f21
NFSv4: Don't modify the change attribute cached in the inode

When the client is caching data and a write delegation is held, then the
server may send a CB_GETATTR to query the attributes. When this happens,
the client is supposed to bump the change attribute value that it
returns if it holds cached data.
However that process uses a value that is stored in the delegation. We
do not want to bump the change attribute held in the inode.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/write.c