]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: EXT4_IOC_MOVE_EXT: Check for different original and donor inodes first
authorTheodore Ts'o <tytso@mit.edu>
Mon, 28 Sep 2009 19:58:29 +0000 (15:58 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:07:05 +0000 (08:07 -0800)
commitca23b5fd5bd6fd09e90008f9390cff248e01b718
treee4d04b009e6a525e65af27244e88cdc7d592918a
parent3c42b7eb297192519fbfa80e1c77abd01c223114
ext4: EXT4_IOC_MOVE_EXT: Check for different original and donor inodes first

(cherry picked from commit f3ce8064b388ccf420012c5a4907aae4f13fe9d0)

Move the check to make sure the original and donor inodes are
different earlier, to avoid a potential deadlock by trying to lock the
same inode twice.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/move_extent.c