]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ext4/file.c
ext4: Remove old legacy block allocator
[net-next-2.6.git] / fs / ext4 / file.c
index 11b289f42b7d39307d02ea9337d8ae09e1b04ef5..62796b7e1d1b97c237d9977320fd6529f694c283 100644 (file)
@@ -38,7 +38,7 @@ static int ext4_release_file(struct inode *inode, struct file *filp)
                        (atomic_read(&inode->i_writecount) == 1))
        {
                down_write(&EXT4_I(inode)->i_data_sem);
-               ext4_discard_reservation(inode);
+               ext4_discard_preallocations(inode);
                up_write(&EXT4_I(inode)->i_data_sem);
        }
        if (is_dx(inode) && filp->private_data)