diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-08-16 13:57:35 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-08-16 13:57:35 +0200 |
commit | 88aa3cff4e9a38b953de9fbc54c96e619a2bb9f9 (patch) | |
tree | 2905089c0d20ef7a6017d40acbe887148f3cd1fa /fs | |
parent | ext4: Fix ext4_dx_readdir hash collision handling (diff) | |
download | linux-88aa3cff4e9a38b953de9fbc54c96e619a2bb9f9.tar.xz linux-88aa3cff4e9a38b953de9fbc54c96e619a2bb9f9.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 612c3d2c3824..7212947a8ca3 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -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. |