f2fs: don't need to get f2fs_lock_op for the inline_data test
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 27 Dec 2013 02:01:54 +0000 (11:01 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 27 Dec 2013 03:40:41 +0000 (12:40 +0900)
commitf185ff979f97943c9d4966ed4edc9819c3342c5b
treeb9037bff2c40d3941a9adf693a699ce61af388db
parente4024e86c28d9b7b297b35d3a697faad44e1e19c
f2fs: don't need to get f2fs_lock_op for the inline_data test

This patch locates checking the inline_data prior to calling f2fs_lock_op()
in truncate_blocks(), since getting the lock is unnecessary.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/file.c