aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2025-03-26 04:11:13 +0000
committerDavid Sterba <[email protected]>2025-04-17 09:55:17 +0000
commitcf6ae7ed091059a8d1a70cf184f18ebfd18ab4af (patch)
tree52df2995072a6928ef41dc5e9b7deaa53be554ae /rust/helpers/helpers.c
parentbtrfs: remove folio order ASSERT()s in super block writeback path (diff)
downloadkernel-cf6ae7ed091059a8d1a70cf184f18ebfd18ab4af.tar.gz
kernel-cf6ae7ed091059a8d1a70cf184f18ebfd18ab4af.zip
btrfs: subpage: access correct object when reading bitmap start in subpage_calc_start_bit()
Inside the macro, subpage_calc_start_bit(), we need to calculate the offset to the beginning of the folio. But we're using offset_in_page(), on systems with 4K page size and 4K fs block size, this means we will always return offset 0 for a large folio, causing all kinds of errors. Fix it by using offset_in_folio() instead. Reviewed-by: Filipe Manana <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions