f2fs: avoid double lock in truncate_blocks
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 14 Aug 2014 23:32:54 +0000 (16:32 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 21 Aug 2014 20:57:01 +0000 (13:57 -0700)
commit764aa3e978020121cbb86111b5d8f42830015a06
treedf2e0f43245a452010aa184042e7da2306ed2e4b
parent14f4e690857715d5e0cbe403b4cb8e8c904a6c15
f2fs: avoid double lock in truncate_blocks

The init_inode_metadata calls truncate_blocks when error is occurred.
The callers holds f2fs_lock_op, so we should not call it again in
truncate_blocks.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/dir.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/inline.c