[PATCH 29/49] ext4: Make ext4_get_blocks_wrap take the truncate_mutex early.

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> When doing a migrate from ext3 to ext4 inode we need to make sure the test for inode type and walking inode data happens inside lock. To make this happen move truncate_mutex early before checking the i_flags. This actually should enable us to remove

[PATCH 29/49] ext4: Make ext4_get_blocks_wrap take the truncate_mutex early.

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V [EMAIL PROTECTED] When doing a migrate from ext3 to ext4 inode we need to make sure the test for inode type and walking inode data happens inside lock. To make this happen move truncate_mutex early before checking the i_flags. This actually should enable us to remove the