diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-11-22 07:44:56 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-11-22 07:44:56 -0500 |
commit | 4433871130f36585fde38e7dd817433296648945 (patch) | |
tree | 5dd91fbb345f5a4240f4d2df271da49ca1a6037b /fs/ext4/ext4.h | |
parent | b7e57e7c2a41826e51fe060fae5158bfc7a04e81 (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.h | 7 |
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); |
1326 | extern int ext4_claim_free_blocks(struct ext4_sb_info *sbi, s64 nblocks); | 1326 | extern int ext4_claim_free_blocks(struct ext4_sb_info *sbi, s64 nblocks); |
1327 | extern int ext4_has_free_blocks(struct ext4_sb_info *sbi, s64 nblocks); | 1327 | extern int ext4_has_free_blocks(struct ext4_sb_info *sbi, s64 nblocks); |
1328 | extern void ext4_free_blocks(handle_t *handle, struct inode *inode, | ||
1329 | ext4_fsblk_t block, unsigned long count, int metadata); | ||
1330 | extern void ext4_add_groupblocks(handle_t *handle, struct super_block *sb, | 1328 | extern 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); |
1332 | extern ext4_fsblk_t ext4_count_free_blocks(struct super_block *); | 1330 | extern ext4_fsblk_t ext4_count_free_blocks(struct super_block *); |
@@ -1385,8 +1383,9 @@ extern int ext4_mb_reserve_blocks(struct super_block *, int); | |||
1385 | extern void ext4_discard_preallocations(struct inode *); | 1383 | extern void ext4_discard_preallocations(struct inode *); |
1386 | extern int __init init_ext4_mballoc(void); | 1384 | extern int __init init_ext4_mballoc(void); |
1387 | extern void exit_ext4_mballoc(void); | 1385 | extern void exit_ext4_mballoc(void); |
1388 | extern void ext4_mb_free_blocks(handle_t *, struct inode *, | 1386 | extern 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); | ||
1390 | extern int ext4_mb_add_groupinfo(struct super_block *sb, | 1389 | extern 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); |
1392 | extern int ext4_mb_get_buddy_cache_lock(struct super_block *, ext4_group_t); | 1391 | extern int ext4_mb_get_buddy_cache_lock(struct super_block *, ext4_group_t); |