]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c3fba3ff50471e2b7084d665c15434756ccaff0
treedf2e0f43245a452010aa184042e7da2306ed2e4b
parentb77f19a78a0e664fab5531d838ebe1b01cb5e120
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