f2fs: move mnt_want_write_file after range check
authorYunlei He <heyunlei@huawei.com>
Tue, 24 Apr 2018 03:40:30 +0000 (11:40 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 Jun 2018 22:49:24 +0000 (15:49 -0700)
commitc75638d5f569f20fd79bf065f8ee8bbbb1abdfa6
treecdd22d8e3918b77db038411f05ec629d50b50e2c
parentcc7e70c070237cf1e94b80e4bd76f897ca308d0d
f2fs: move mnt_want_write_file after range check

This patch move mnt_want_write_file after range check,
it's needless to check arguments with it.

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