Skip to contentSkip to conversation

ext4: Cleanup the block reservation code path

PATCH New Aneesh Kumar K.V 1 participant 1 message Jul 16, 2008 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4: Cleanup the block reservation code path

The truncate patch should not use the i_allocated_meta_blocks value. So add seperate functions to be used in the truncate and alloc path. We also need to release the meta-data block that we reserved for the blocks that we are truncating.

---
 fs/ext4/ext4.h  |    1 -
 fs/ext4/inode.c |  108 ++++++++++++++++++++++++++++++++++---------------------
 2 files changed, 67 insertions(+), 42 deletions(-)
fs/ext4/ext4.h +0 -1
index 303e41c..6c7924d 100644
@@ -1044,7 +1044,6 @@ extern void ext4_mb_update_group_info(struct ext4_group_info *grp,
 
 
 /* inode.c */
-void ext4_da_release_space(struct inode *inode, int used, int to_free);
 int ext4_forget(handle_t *handle, int is_metadata, struct inode *inode,
 		struct buffer_head *bh, ext4_fsblk_t blocknr);
 struct buffer_head *ext4_getblk(handle_t *, struct inode *,
fs/ext4/inode.c +67 -41

165 lines not on this page · raw message

Signature · 1 line
1.5.6.3.350.g6c11a.dirty