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>
Sun, 8 Apr 2018 11:14:26 +0000 (04:14 -0700)
commit9813cae680f06967c8b79467d93a20086bcd7ef4
tree474038c3938bc0275b0a3a1a3691041c5e74788e
parentcee6482cd12c621d76dd8bdb24948ed35b17a2ab
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