diff options
| author | David Howells <[email protected]> | 2022-12-06 13:49:42 +0000 |
|---|---|---|
| committer | David Howells <[email protected]> | 2023-05-02 16:17:42 +0000 |
| commit | 45f66fa03ba9943cca5af88d691399332b8bde08 (patch) | |
| tree | f90477193e73bbe2e3d13c1fd0b6b551f752d444 /tools/perf/scripts/python/compaction-times.py | |
| parent | afs: Fix updating of i_size with dv jump from server (diff) | |
| download | kernel-45f66fa03ba9943cca5af88d691399332b8bde08.tar.gz kernel-45f66fa03ba9943cca5af88d691399332b8bde08.zip | |
afs: Fix getattr to report server i_size on dirs, not local size
Fix afs_getattr() to report the server's idea of the file size of a
directory rather than the local size. The local size may differ as we edit
the local copy to avoid having to redownload it and we may end up with a
differently structured blob of a different size.
However, if the directory is discarded from the pagecache we then download
it again and the user may see the directory file size apparently change.
Fixes: 63a4681ff39c ("afs: Locally edit directory data for mkdir/create/unlink/...")
Signed-off-by: David Howells <[email protected]>
cc: Marc Dionne <[email protected]>
cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions
