diff options
| author | Jeff Layton <[email protected]> | 2024-10-02 21:27:20 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-10-10 08:20:51 +0000 |
| commit | 7f2c86cba3c584c7227cddaabdf0ab54c8151e60 (patch) | |
| tree | 5c103c27044de0ed4231b961bd405aeef1448005 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | fs: have setattr_copy handle multigrain timestamps appropriately (diff) | |
| download | kernel-7f2c86cba3c584c7227cddaabdf0ab54c8151e60.tar.gz kernel-7f2c86cba3c584c7227cddaabdf0ab54c8151e60.zip | |
fs: handle delegated timestamps in setattr_copy_mgtime
An update to the inode ctime typically requires the latest clock
value possible. The exception to this rule is when there is a nfsd write
delegation and the server is proxying timestamps from the client.
When nfsd gets a CB_GETATTR response, update the timestamp value in the
inode to the values that the client is tracking. The client doesn't send
a ctime value (since that's always determined by the exported
filesystem), but it can send a mtime value. In the case where it does,
update the ctime to a value commensurate with that instead of the
current time.
If ATTR_DELEG is set, then use ia_ctime value instead of setting the
timestamp to the current time.
With the addition of delegated timestamps, the server may receive a
request to update only the atime, which doesn't involve a ctime update.
Trust the ATTR_CTIME flag in the update and only update the ctime when
it's set.
Tested-by: Randy Dunlap <[email protected]> # documentation bits
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
