ext4: Use ext4_discard_reservations instead of mballoc-specific call

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>

+1 -1
+1 -1
fs/ext4/extents.c
··· 2819 down_write(&EXT4_I(inode)->i_data_sem); 2820 ext4_ext_invalidate_cache(inode); 2821 2822 - ext4_mb_discard_inode_preallocations(inode); 2823 2824 /* 2825 * TODO: optimization is possible here.
··· 2819 down_write(&EXT4_I(inode)->i_data_sem); 2820 ext4_ext_invalidate_cache(inode); 2821 2822 + ext4_discard_reservation(inode); 2823 2824 /* 2825 * TODO: optimization is possible here.