f2fs: move error condition for mkdir at proper place
authorNamjae Jeon <namjae.jeon@samsung.com>
Sat, 1 Dec 2012 01:56:25 +0000 (10:56 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 11 Dec 2012 04:43:44 +0000 (13:43 +0900)
In function f2fs_mkdir, err is being initialized without even checking
if there was any error in new inode creation. So, instead check the
inode error and make use of error/return condition.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
fs/f2fs/namei.c

diff --cc fs/f2fs/namei.c
Simple merge