diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-04-25 18:04:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-12 12:23:47 +0200 |
commit | f455c8e657e3be2d6e06fdedf08012059edd5f99 (patch) | |
tree | 3374ab1ce229d55a22cd4203bfbdab43166db2dc /.cocciconfig | |
parent | 89e7a625ec5c71a06214b6cc4fbc9fbc6115fa6a (diff) |
NFSv4: Don't invalidate inode attributes on delegation return
[ Upstream commit 00c94ebec5925593c0377b941289224469e72ac7 ]
There is no need to declare attributes such as the ctime, mtime and
block size invalid when we're just returning a delegation, so it is
inappropriate to call nfs_post_op_update_inode_force_wcc().
Instead, just call nfs_refresh_inode() after faking up the change
attribute. We know that the GETATTR op occurs before the DELEGRETURN, so
we are safe when doing this.
Fixes: 0bc2c9b4dca9 ("NFSv4: Don't discard the attributes returned by asynchronous DELEGRETURN")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions