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)
committerIan Chang <ianc@nvidia.com>
Wed, 27 Jan 2016 10:04:17 +0000 (18:04 +0800)
commit82b2f53ac39ae84fafaa8c6bfb424331fef7db4d
tree4bf7ba360f257f3442e85070985a8de0e518bdde
parentb9ca9958dfd543a0248c1f39d32a670847841015
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