]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ext4: Use ext4_discard_reservations instead of mballoc-specific call
authorTheodore Ts'o <tytso@mit.edu>
Sat, 16 Aug 2008 11:57:35 +0000 (07:57 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 16 Aug 2008 11:57:35 +0000 (07:57 -0400)
In ext4_ext_truncate(), we should use the more generic
ext4_discard_reservations() call so we do the right thing when the
filesystem is mounted with the nomballoc option.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Mingming Cao <cmm@us.ibm.com>
fs/ext4/extents.c

index 612c3d2c38240ff59a643bcbf405c2229443a848..7212947a8ca32cb39dab228ab3940d0936215212 100644 (file)
@@ -2819,7 +2819,7 @@ void ext4_ext_truncate(struct inode *inode)
        down_write(&EXT4_I(inode)->i_data_sem);
        ext4_ext_invalidate_cache(inode);
 
-       ext4_mb_discard_inode_preallocations(inode);
+       ext4_discard_reservation(inode);
 
        /*
         * TODO: optimization is possible here.