Commit b40b1ba
nfsd: fix timestamp updates in CB_GETATTR
When updating the local timestamps from CB_GETATTR, the updated values
are not being properly vetted.
Compare the update times vs. the saved times in the delegation rather
than the current times in the inode. Also, ensure that the ctime is
properly vetted vs. its original value.
Fixes: 6ae30d6 ("nfsd: add support for delegated timestamps")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent 3952f1c commit b40b1ba
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9175 | 9175 | | |
9176 | 9176 | | |
9177 | 9177 | | |
9178 | | - | |
9179 | | - | |
9180 | 9178 | | |
9181 | 9179 | | |
9182 | 9180 | | |
9183 | 9181 | | |
9184 | 9182 | | |
9185 | | - | |
| 9183 | + | |
9186 | 9184 | | |
9187 | 9185 | | |
9188 | | - | |
9189 | | - | |
9190 | | - | |
| 9186 | + | |
| 9187 | + | |
9191 | 9188 | | |
| 9189 | + | |
| 9190 | + | |
9192 | 9191 | | |
9193 | 9192 | | |
9194 | 9193 | | |
| |||
0 commit comments