aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2025-04-09 11:10:35 +0000
committerDavid Sterba <[email protected]>2025-05-15 12:30:46 +0000
commit8cad6fed82147d8fb7fdc96b4247404a214372cf (patch)
tree4b1a6ca9d8b33c74b6a469d23a2d166df557e666 /fs/btrfs/async-thread.c
parentbtrfs: update and correct description of btrfs_get_or_create_delayed_node() (diff)
downloadkernel-8cad6fed82147d8fb7fdc96b4247404a214372cf.tar.gz
kernel-8cad6fed82147d8fb7fdc96b4247404a214372cf.zip
btrfs: remove the alignment checks in end_bbio_data_read()
end_bbio_data_read() checks that each iterated folio fragment is aligned and justifies that with block drivers advancing the bio. But block driver only advance bi_iter, while end_bbio_data_read() uses bio_for_each_folio_all() to iterate the immutable bi_io_vec array that can't be changed by drivers at all. Furthermore btrfs has already did the alignment check of the file offset inside submit_one_sector(), and the size is fixed to fs block size, there is no need to re-do the alignment check again inside the endio function. So just remove the unnecessary alignment check along with the incorrect comment. Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions