aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-01-01 23:59:43 -0500
committerTheodore Ts'o <tytso@mit.edu>2009-01-01 23:59:43 -0500
commit815a1130687ffac2c3e91513ce64aab629d6a54d (patch)
tree9abc15c6e1e44a5e5fcf1feb0f9328b09657ad59 /fs/ext4/ext4.h
parent8e1a4857cd92e32e642b3e7184c7f6bf85c96e2e (diff)
ext4: remove ext4_new_blocks() and call ext4_mb_new_blocks() directly
There was only one caller of the compatibility function ext4_new_blocks(), in balloc.c's ext4_alloc_blocks(). Change it to call ext4_mb_new_blocks() directly, and remove ext4_new_blocks() altogether. This cleans up the code, by removing two extra functions from the call chain, and hopefully saving some stack usage. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 8370ffd2d62f..74cb395e689f 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1002,9 +1002,6 @@ extern ext4_fsblk_t ext4_new_meta_block(handle_t *handle, struct inode *inode,
1002 ext4_fsblk_t goal, int *errp); 1002 ext4_fsblk_t goal, int *errp);
1003extern ext4_fsblk_t ext4_new_meta_blocks(handle_t *handle, struct inode *inode, 1003extern ext4_fsblk_t ext4_new_meta_blocks(handle_t *handle, struct inode *inode,
1004 ext4_fsblk_t goal, unsigned long *count, int *errp); 1004 ext4_fsblk_t goal, unsigned long *count, int *errp);
1005extern ext4_fsblk_t ext4_new_blocks(handle_t *handle, struct inode *inode,
1006 ext4_lblk_t iblock, ext4_fsblk_t goal,
1007 unsigned long *count, int *errp);
1008extern int ext4_claim_free_blocks(struct ext4_sb_info *sbi, s64 nblocks); 1005extern int ext4_claim_free_blocks(struct ext4_sb_info *sbi, s64 nblocks);
1009extern int ext4_has_free_blocks(struct ext4_sb_info *sbi, s64 nblocks); 1006extern int ext4_has_free_blocks(struct ext4_sb_info *sbi, s64 nblocks);
1010extern void ext4_free_blocks(handle_t *handle, struct inode *inode, 1007extern void ext4_free_blocks(handle_t *handle, struct inode *inode,