mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
Surprisingly, `block' in sector_t indicates the number of
i_blkbits-sized blocks rather than sectors for bmap.
In addition, considering buffer_head limits mapped size to 32-bits,
should avoid using generic_block_bmap.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 9da681e017 ("staging: erofs: support bmap")
Reviewed-by: Chao Yu <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Signed-off-by: Huang Jianan <[email protected]>
Signed-off-by: Guo Weichao <[email protected]>
[ Gao Xiang: slightly update the commit message description. ]
Signed-off-by: Gao Xiang <[email protected]>