ext4: rename: move EMLINK check up
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Apr 2014 15:08:44 +0000 (17:08 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Apr 2014 15:08:44 +0000 (17:08 +0200)
Move checking i_nlink from after ext4_get_first_dir_block() to before.  The
check doesn't rely on the result of that function and the function only
fails on fs corruption, so the order shouldn't matter.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/ext4/namei.c

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