Repository navigation
Commit a60cb39
erofs: avoid using generic_block_bmap
[ Upstream commit d8b3df8 ]
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: 9da681e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 82d87b5 commit a60cb39
1 file changed
Lines changed: 7 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | 315 | | |
334 | 316 | | |
335 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
336 | 321 | | |
337 | 322 | | |
338 | 323 | | |
| |||
341 | 326 | | |
342 | 327 | | |
343 | 328 | | |
344 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
345 | 333 | | |
346 | 334 | | |
347 | 335 | | |
| |||
0 commit comments