linux/fs/f2fs/inode.c
Jaegeuk Kim 551b02acda f2fs: call f2fs_unlock_op after error was handled
commit 44c1615651 upstream.

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>
[bwh: Backported to 3.16:
 - Drop changes in f2fs_tmpfile()
 - Use F2FS_SB() instead of F2FS_I_SB()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2018-10-21 08:46:01 +01:00

324 lines
8.6 KiB