f2fs: introduce f2fs_do_tmpfile for code consistency
authorJaegeuk Kim <jaegeuk@kernel.org>
Sat, 21 Jun 2014 04:37:02 +0000 (21:37 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 9 Jul 2014 21:04:24 +0000 (14:04 -0700)
commitb97a9b5da891ab6aff5a6a19c569c9c4c5563d48
treec8e3fe4ddbba29eed50b9bf461cb088b21a13d00
parent50732df02eefb39ab414ef655979c2c9b64ad21c
f2fs: introduce f2fs_do_tmpfile for code consistency

This patch adds f2fs_do_tmpfile to eliminate the redundant init_inode_metadata
flow.
Throught this, we can provide the consistent lock usage, e.g., fi->i_sem,  and
this will enable better debugging stuffs.

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