ext4: fix incorrect lock ordering for ext4_ind_migrate
authorDmitry Monakhov <dmonakhov@openvz.org>
Mon, 8 Apr 2013 17:02:25 +0000 (13:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Apr 2013 17:02:25 +0000 (13:02 -0400)
commite8238f9a8339b3578c85e4192a7a23bc2bdc0333
treed33c573dc71982138d5fd71d6335ac664cb03bbc
parent393d1d1d76933886d5e1ce603214c9987589c6d5
ext4: fix incorrect lock ordering for ext4_ind_migrate

existing locking ordering: journal-> i_data_sem, but
ext4_ind_migrate() grab locks in opposite order which may result in
deadlock.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c