]> Gentwo Git Trees - linux/.git/commit
fuse: remove fc->blkbits workaround for partial writes
authorJoanne Koong <joannelkoong@gmail.com>
Fri, 26 Sep 2025 00:26:09 +0000 (17:26 -0700)
committerChristian Brauner <brauner@kernel.org>
Wed, 5 Nov 2025 11:57:24 +0000 (12:57 +0100)
commit93570c652b80cd632dc49b590a35d3f0e268893b
treeb6b5431177af815386a02debc40f3054ff715979
parent4ea907108a5ca800e91708f0dbbe01bc95f8f5af
fuse: remove fc->blkbits workaround for partial writes

Now that fuse is integrated with iomap for read/readahead, we can remove
the workaround that was added in commit bd24d2108e9c ("fuse: fix fuseblk
i_blkbits for iomap partial writes"), which was previously needed to
avoid a race condition where an iomap partial write may be overwritten
by a read if blocksize < PAGE_SIZE. Now that fuse does iomap
read/readahead, this is protected against since there is granular
uptodate tracking of blocks, which means this workaround can be removed.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Tested-by: syzbot@syzkaller.appspotmail.com
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/fuse/dir.c
fs/fuse/fuse_i.h
fs/fuse/inode.c