• Qilong Zhang's avatar
    f2fs: add f2fs_gc exception handle in f2fs_ioc_gc_range · 97767500
    Qilong Zhang authored
    When f2fs_ioc_gc_range performs multiple segments gc ops, the return
    value of f2fs_ioc_gc_range is determined by the last segment gc ops.
    If its ops failed, the f2fs_ioc_gc_range will be considered to be failed
    despite some of previous segments gc ops succeeded. Therefore, so we
    fix: Redefine the return value of getting victim ops and add exception
    handle for f2fs_gc. In particular, 1).if target has no valid block, it
    will go on. 2).if target sectoion has valid block(s), but it is current
    section, we will reminder the caller.
    Signed-off-by: default avatarQilong Zhang <zhangqilong3@huawei.com>
    Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    97767500
file.c 95 KB