• Chao Yu's avatar
    f2fs: fix incorrect mapping in ->bmap · 43473f96
    Chao Yu authored
    Currently, generic_block_bmap is used in f2fs_bmap, its semantics is when
    the mapping is been found, return position of target physical block,
    otherwise return zero.
    
    But, previously, when there is no mapping info for specified logical block,
    f2fs_bmap will map target physical block to a uninitialized variable, which
    should be wrong. Fix it.
    Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    43473f96
data.c 42.1 KB