ext4: start handle at the last possible moment in ext4_rmdir()
authorTheodore Ts'o <tytso@mit.edu>
Sat, 9 Feb 2013 14:45:11 +0000 (09:45 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 9 Feb 2013 14:45:11 +0000 (09:45 -0500)
commit8dcfaad244cdfa245cc2b4ddf42cea5fd8b80ece
tree7045f5bebd461b6f2cf3e43c008f4d150232e05a
parent931b68649d31b6b52608110f34856f8eb77adb36
ext4: start handle at the last possible moment in ext4_rmdir()

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