aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJoanne Koong <[email protected]>2025-07-23 23:08:50 +0000
committerLinus Torvalds <[email protected]>2025-07-28 23:14:18 +0000
commit595d7ebeaf39ee08180e00fdecf3576a2d702e01 (patch)
tree30057c4f57656aff5b0a57f9cb73bf37774878f2 /net/unix/af_unix.c
parentMerge tag 'vfs-6.17-rc1.iomap' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadkernel-595d7ebeaf39ee08180e00fdecf3576a2d702e01.tar.gz
kernel-595d7ebeaf39ee08180e00fdecf3576a2d702e01.zip
fuse: remove page alignment check for writeback len
Remove incorrect page alignment check for the writeback len arg in fuse_iomap_writeback_range(). len will always be block-aligned as passed in by iomap. On regular fuse filesystems, i_blkbits is set to PAGE_SHIFT so this is not a problem but for fuseblk filesystems, the block size is set to a default of 512 bytes or a block size passed in at mount time. Please note that non-page-aligned lengths are fine for the logic in fuse_iomap_writeback_range(). The check was originally added as a safeguard to detect conspicuously wrong ranges. Signed-off-by: Joanne Koong <[email protected]> Fixes: ef7e7cbb323f ("fuse: use iomap for writeback") Reported-by: Linux Kernel Functional Testing <[email protected]> Link: https://lore.kernel.org/linux-fsdevel/CA+G9fYs5AdVM-T2Tf3LciNCwLZEHetcnSkHsjZajVwwpM2HmJw@mail.gmail.com/ Reported-by: Sasha Levin <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions