Commit c066ff5
nfsd: use ATTR_CTIME_SET for delegated ctime updates
Ensure that notify_change() doesn't clobber a delegated ctime update
with current_time() by setting ATTR_CTIME_SET for those updates.
Don't bother setting the timestamps in cb_getattr_update_times() in the
non-delegated case. notify_change() will do that itself.
Fixes: 7e13f4f ("nfsd: handle delegated timestamps in SETATTR")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent afc5b36 commit c066ff5
2 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9167 | 9167 | | |
9168 | 9168 | | |
9169 | 9169 | | |
9170 | | - | |
9171 | 9170 | | |
9172 | 9171 | | |
9173 | 9172 | | |
9174 | 9173 | | |
9175 | 9174 | | |
9176 | 9175 | | |
9177 | 9176 | | |
| 9177 | + | |
9178 | 9178 | | |
9179 | 9179 | | |
9180 | 9180 | | |
| |||
9183 | 9183 | | |
9184 | 9184 | | |
9185 | 9185 | | |
9186 | | - | |
| 9186 | + | |
| 9187 | + | |
9187 | 9188 | | |
9188 | 9189 | | |
9189 | 9190 | | |
9190 | 9191 | | |
9191 | | - | |
9192 | 9192 | | |
9193 | 9193 | | |
9194 | 9194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
542 | | - | |
| 542 | + | |
| 543 | + | |
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
| |||
0 commit comments