Skip to content

Commit 74e4e6d

Browse files
committed
ext4: set extents flag when migrating file to use extents
Fix a typo that was introduced in commit 07a0382 (in 2.6.36) which caused the extents flag not to be set at the conclusion of converting an inode to use extents. Reported-by: Peter Uchno <peter.uchno@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
1 parent deeeaf1 commit 74e4e6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ext4/migrate.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ static int ext4_ext_swap_inode_data(handle_t *handle, struct inode *inode,
376376
* We have the extent map build with the tmp inode.
377377
* Now copy the i_data across
378378
*/
379-
ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS);
379+
ext4_set_inode_flag(inode, EXT4_INODE_EXTENTS);
380380
memcpy(ei->i_data, tmp_ei->i_data, sizeof(ei->i_data));
381381

382382
/*

0 commit comments

Comments
 (0)