Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ext4: set extents flag when migrating file to use extents

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>

+1 -1
+1 -1
fs/ext4/migrate.c
··· 376 376 * We have the extent map build with the tmp inode. 377 377 * Now copy the i_data across 378 378 */ 379 - ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS); 379 + ext4_set_inode_flag(inode, EXT4_INODE_EXTENTS); 380 380 memcpy(ei->i_data, tmp_ei->i_data, sizeof(ei->i_data)); 381 381 382 382 /*