OSDN Git Service

f2fs: correct return value of f2fs_trim_fs
authorChao Yu <yuchao0@huawei.com>
Sun, 8 Apr 2018 12:39:03 +0000 (20:39 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 9 Jul 2018 00:28:30 +0000 (17:28 -0700)
commit9190cadf38db9a3b321c8882b1d27219a5e6f436
tree28affcac8a0a05180d1e13618b3e4119d168aa04
parent17f85d070886c69dd5bc5f32dc4fcdbd24199a7a
f2fs: correct return value of f2fs_trim_fs

Correct return value in two cases:
- return EINVAL if end boundary is out-of-range.
- return EIO if fs needs off-line check.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c