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)
commit0d7d5d678bf9e07dffe22b018cf035d511d9e86e
tree400d85b05ea6b1af9bd39ce75d48de9269d8cd06
parentc0d268c3661efdfc76dde90ff2bc12806410cd0a
ext4: rename: move EMLINK check up

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