f2fs: call f2fs_unlock_op after error was handled
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 25 Sep 2014 18:55:53 +0000 (11:55 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 30 Sep 2014 22:34:55 +0000 (15:34 -0700)
commit44c16156512f33c81e382a1e1df9524e26a7026a
treeb06e5aba8d4a5419c1a11a6d0da00450c8e2d766
parent7cd8558baa4e4588a80ecb31cb30784195763cdd
f2fs: call f2fs_unlock_op after error was handled

This patch relocates f2fs_unlock_op in every directory operations to be called
after any error was processed.
Otherwise, the checkpoint can be entered with valid node ids without its
dentry when -ENOSPC is occurred.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/inode.c
fs/f2fs/namei.c