diff options
author | Jeff Layton <[email protected]> | 2024-10-02 17:27:19 -0400 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2024-10-07 12:48:57 +0200 |
commit | b82f92d5dd1a365ab1e13518c8bf799f6fec4518 (patch) | |
tree | 576966317e5584d002a2e18a740c1b54bf66e3b4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 4e40eff0b5737c0de39e1ae5812509efbc0b986e (diff) |
fs: have setattr_copy handle multigrain timestamps appropriately
The setattr codepath is still using coarse-grained timestamps, even on
multigrain filesystems. To fix this, fetch the timestamp for ctime
updates later, at the point where the assignment occurs in setattr_copy.
On a multigrain inode, ignore the ia_ctime in the attrs, and always
update the ctime to the current clock value. Update the atime and mtime
with the same value (if needed) unless they are being set to other
specific values, a'la utimes().
Do not do this universally however, as some filesystems (e.g. most
networked fs) want to do an explicit update elsewhere before updating
the local inode.
Reviewed-by: Darrick J. Wong <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Tested-by: Randy Dunlap <[email protected]> # documentation bits
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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions