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)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Sep 2009 19:58:29 +0000 (15:58 -0400)
commitf3ce8064b388ccf420012c5a4907aae4f13fe9d0
tree3d0cbfffc75ea698726d71c06c9b0be82982d6eb
parent8d5d02e6b176565c77ff03604908b1453a22044d
ext4: EXT4_IOC_MOVE_EXT: Check for different original and donor inodes first

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>
fs/ext4/move_extent.c