]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: avoid using generic_block_bmap
authorHuang Jianan <huangjianan@oppo.com>
Wed, 9 Dec 2020 11:57:40 +0000 (19:57 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Thu, 10 Dec 2020 03:07:40 +0000 (11:07 +0800)
commit30d1ee119c2fa70a020e506193166cd5b0102ea1
tree960135b0bde11aea7db83dd05606646986bdc723
parent7374107fe0a87b6dba22dd674ef0359b66d4b0ad
erofs: avoid using generic_block_bmap

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/20201209115740.18802-1-huangjianan@oppo.com
Fixes: 7c8a51d48cba ("staging: erofs: support bmap")
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Gao Xiang <hsiangkao@redhat.com>
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Signed-off-by: Guo Weichao <guoweichao@oppo.com>
[ Gao Xiang: slightly update the commit message description. ]
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
fs/erofs/data.c