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>
Thu, 31 May 2018 18:31:45 +0000 (11:31 -0700)
commit3d165dc3aeef0c9cca7dd760a09f7d08aab0eef2
treea631887358ea3b1899ddc02cfcf8a3684c464912
parent764811581d1cfb5f8b1c33b90ed4bcdb363e930a
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