ext4: start handle at the last possible moment in ext4_unlink()
authorTheodore Ts'o <tytso@mit.edu>
Sat, 9 Feb 2013 14:43:39 +0000 (09:43 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 9 Feb 2013 14:43:39 +0000 (09:43 -0500)
commit931b68649d31b6b52608110f34856f8eb77adb36
tree529614b33100e5758431696228485089107ab0e5
parent47564bfb95bf370d73906fc4ae57c271e8ba96cd
ext4: start handle at the last possible moment in ext4_unlink()

Don't start the jbd2 transaction handle until after the directory
entry has been found, to minimize the amount of time that a handle is
held active.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/ext4/namei.c