aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-11-22 07:44:56 -0500
committerTheodore Ts'o <tytso@mit.edu>2009-11-22 07:44:56 -0500
commit4433871130f36585fde38e7dd817433296648945 (patch)
tree5dd91fbb345f5a4240f4d2df271da49ca1a6037b /fs/ext4/ext4.h
parentb7e57e7c2a41826e51fe060fae5158bfc7a04e81 (diff)
ext4: fold ext4_free_blocks() and ext4_mb_free_blocks()
ext4_mb_free_blocks() is only called by ext4_free_blocks(), and the latter function doesn't really do much. So merge the two functions together, such that ext4_free_blocks() is now found in fs/ext4/mballoc.c. This saves about 200 bytes of compiled text space. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 57c4e03afa0a..210e1b53e91f 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1325,8 +1325,6 @@ extern ext4_fsblk_t ext4_new_meta_blocks(handle_t *handle, struct inode *inode,
1325 ext4_fsblk_t goal, unsigned long *count, int *errp); 1325 ext4_fsblk_t goal, unsigned long *count, int *errp);
1326extern int ext4_claim_free_blocks(struct ext4_sb_info *sbi, s64 nblocks); 1326extern int ext4_claim_free_blocks(struct ext4_sb_info *sbi, s64 nblocks);
1327extern int ext4_has_free_blocks(struct ext4_sb_info *sbi, s64 nblocks); 1327extern int ext4_has_free_blocks(struct ext4_sb_info *sbi, s64 nblocks);
1328extern void ext4_free_blocks(handle_t *handle, struct inode *inode,
1329 ext4_fsblk_t block, unsigned long count, int metadata);
1330extern void ext4_add_groupblocks(handle_t *handle, struct super_block *sb, 1328extern void ext4_add_groupblocks(handle_t *handle, struct super_block *sb,
1331 ext4_fsblk_t block, unsigned long count); 1329 ext4_fsblk_t block, unsigned long count);
1332extern ext4_fsblk_t ext4_count_free_blocks(struct super_block *); 1330extern ext4_fsblk_t ext4_count_free_blocks(struct super_block *);
@@ -1385,8 +1383,9 @@ extern int ext4_mb_reserve_blocks(struct super_block *, int);
1385extern void ext4_discard_preallocations(struct inode *); 1383extern void ext4_discard_preallocations(struct inode *);
1386extern int __init init_ext4_mballoc(void); 1384extern int __init init_ext4_mballoc(void);
1387extern void exit_ext4_mballoc(void); 1385extern void exit_ext4_mballoc(void);
1388extern void ext4_mb_free_blocks(handle_t *, struct inode *, 1386extern void ext4_free_blocks(handle_t *handle, struct inode *inode,
1389 ext4_fsblk_t, unsigned long, int, unsigned long *); 1387 ext4_fsblk_t block, unsigned long count,
1388 int metadata);
1390extern int ext4_mb_add_groupinfo(struct super_block *sb, 1389extern int ext4_mb_add_groupinfo(struct super_block *sb,
1391 ext4_group_t i, struct ext4_group_desc *desc); 1390 ext4_group_t i, struct ext4_group_desc *desc);
1392extern int ext4_mb_get_buddy_cache_lock(struct super_block *, ext4_group_t); 1391extern int ext4_mb_get_buddy_cache_lock(struct super_block *, ext4_group_t);