f2fs: release locks before return in f2fs_ioc_gc_range()
authorQiuyang Sun <sunqiuyang@huawei.com>
Tue, 13 Mar 2018 11:42:50 +0000 (19:42 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 17 Mar 2018 04:58:16 +0000 (13:58 +0900)
commitda5ce874f8cabe18bc34b50856933108830663bc
tree9fcaf6124e1570c9993ffbed3276538317e78547
parentbb1105e479fbb8b0edc6f35affec71b75e31c8c0
f2fs: release locks before return in f2fs_ioc_gc_range()

Currently, we will leave the kernel with locks still held when the gc_range
is invalid. This patch fixes the bug.

Signed-off-by: Qiuyang Sun <sunqiuyang@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c