ext4: set extents flag when migrating file to use extents
authorTheodore Ts'o <tytso@mit.edu>
Tue, 3 May 2011 13:34:42 +0000 (09:34 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 3 May 2011 13:34:42 +0000 (09:34 -0400)
Fix a typo that was introduced in commit 07a038245b (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>
fs/ext4/migrate.c

index 92816b4e0f16a143f555d539cb9cb47abc7e1d48..b57b98fb44d1457ec9f98e60290d6da3a90fb6c8 100644 (file)
@@ -376,7 +376,7 @@ static int ext4_ext_swap_inode_data(handle_t *handle, struct inode *inode,
         * We have the extent map build with the tmp inode.
         * Now copy the i_data across
         */
-       ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS);
+       ext4_set_inode_flag(inode, EXT4_INODE_EXTENTS);
        memcpy(ei->i_data, tmp_ei->i_data, sizeof(ei->i_data));
 
        /*
This page took 0.043933 seconds and 5 git commands to generate.