summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorFrederic Bohe2008-07-12 01:27:31 +0200
committerTheodore Ts'o2008-07-12 01:27:31 +0200
commit5f21b0e642d7bf6fe4434c9ba12bc9cb96b17cf7 (patch)
tree0f391fac5cc7fa93129bf8dd853598c6d2d65bb5 /fs/ext4/ext4.h
parentext4: use atomic functions to set bh_state (diff)
downloadkernel-qcow2-linux-5f21b0e642d7bf6fe4434c9ba12bc9cb96b17cf7.tar.gz
kernel-qcow2-linux-5f21b0e642d7bf6fe4434c9ba12bc9cb96b17cf7.tar.xz
kernel-qcow2-linux-5f21b0e642d7bf6fe4434c9ba12bc9cb96b17cf7.zip
ext4: fix online resize with mballoc
Update group infos when updating a group's descriptor. Add group infos when adding a group's descriptor. Refresh cache pages used by mb_alloc when changes occur. This will probably need modifications when META_BG resizing will be allowed. Signed-off-by: Frederic Bohe <frederic.bohe@bull.net> Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 2c4b48519c8b..64edb09c481e 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1033,6 +1033,10 @@ extern int __init init_ext4_mballoc(void);
extern void exit_ext4_mballoc(void);
extern void ext4_mb_free_blocks(handle_t *, struct inode *,
unsigned long, unsigned long, int, unsigned long *);
+extern int ext4_mb_add_more_groupinfo(struct super_block *sb,
+ ext4_group_t i, struct ext4_group_desc *desc);
+extern void ext4_mb_update_group_info(struct ext4_group_info *grp,
+ ext4_grpblk_t add);
/* inode.c */