f2fs: remove buffer_head which has 32bits limit
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 24 Nov 2020 23:19:10 +0000 (15:19 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 3 Dec 2020 06:00:23 +0000 (22:00 -0800)
commitb876f4c94c3d1688edea021d45a528571499e0b9
treea681cdd7b6afb6b849423a853ace39432e64a8bb
parent963ba7f983767d79e914cd616c3e57be1938677e
f2fs: remove buffer_head which has 32bits limit

This patch removes buffer_head dependency when getting block addresses.
Light reported there's a 32bit issue in f2fs_fiemap where map_bh.b_size is
32bits while len is 64bits given by user. This will give wrong length to
f2fs_map_block.

Reported-by: Light Hsieh <Light.Hsieh@mediatek.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c