]> Gentwo Git Trees - linux/.git/commit
fuse: reflect cached blocksize if blocksize was changed
authorJoanne Koong <joannelkoong@gmail.com>
Fri, 15 Aug 2025 18:25:38 +0000 (11:25 -0700)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 26 Aug 2025 10:43:31 +0000 (12:43 +0200)
commit79569946502258ef53984f3000bffa77e469d8dc
treec6eb97f3bc750356fca01d85cd0e95185ce1e7ea
parent1e08938c3694f707bb165535df352ac97a8c75c9
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/
Fixes: 542ede096e48 ("fuse: keep inode->i_blkbits constant")
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dir.c
fs/fuse/fuse_i.h
fs/fuse/inode.c