diff options
| author | Joanne Koong <[email protected]> | 2025-08-15 18:25:38 +0000 |
|---|---|---|
| committer | Miklos Szeredi <[email protected]> | 2025-08-26 10:43:31 +0000 |
| commit | 79569946502258ef53984f3000bffa77e469d8dc (patch) | |
| tree | c6eb97f3bc750356fca01d85cd0e95185ce1e7ea /tools/testing/selftests/filesystems/utils.c | |
| parent | fuse: prevent overflow in copy_file_range return value (diff) | |
| download | kernel-79569946502258ef53984f3000bffa77e469d8dc.tar.gz kernel-79569946502258ef53984f3000bffa77e469d8dc.zip | |
fuse: reflect cached blocksize if blocksize was changed
As pointed out by Miklos[1], in the fuse_update_get_attr() path, the
attributes returned to stat may be cached values instead of fresh ones
fetched from the server. In the case where the server returned a
modified blocksize value, we need to cache it and reflect it back to
stat if values are not re-fetched since we now no longer directly change
inode->i_blkbits.
Link: https://lore.kernel.org/linux-fsdevel/CAJfpeguCOxeVX88_zPd1hqziB_C+tmfuDhZP5qO2nKmnb-dTUA@mail.gmail.com/ [1]
Fixes: 542ede096e48 ("fuse: keep inode->i_blkbits constant")
Signed-off-by: Joanne Koong <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'tools/testing/selftests/filesystems/utils.c')
0 files changed, 0 insertions, 0 deletions
