Trond Myklebust f455c8e657 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>
2022-05-12 12:23:47 +02:00
..
2020-11-05 11:43:34 +01:00
2021-10-27 09:54:27 +02:00
2019-09-19 09:42:37 -07:00
2021-09-22 12:26:25 +02:00
2022-04-15 14:18:36 +02:00
2020-10-01 13:17:19 +02:00
2020-03-25 08:25:58 +01:00
2022-04-15 14:18:41 +02:00
2019-12-17 19:55:30 +01:00
2019-09-18 16:59:14 -07:00
2019-09-18 16:59:14 -07:00
2021-12-14 14:49:02 +01:00