diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c index a7410b34c5ed7f01a808cb2d366b4dafeec1d4c6..2ca6aa3f34e6ca97e61b74149b7e1d99b7e794e3 100644 --- a/fs/ext4/move_extent.c +++ b/fs/ext4/move_extent.c @@ -189,7 +189,7 @@ double_down_write_data_sem(struct inode *orig_inode, struct inode *donor_inode) } down_write(&EXT4_I(first)->i_data_sem); - down_write(&EXT4_I(second)->i_data_sem); + down_write_nested(&EXT4_I(second)->i_data_sem, SINGLE_DEPTH_NESTING); } /**