summaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-12-07 20:10:54 +0100
committerTheodore Ts'o <tytso@mit.edu>2008-12-07 20:10:54 +0100
commitcfe82c856747b7841a3a00d591ce9ed46f579d27 (patch)
treeb5a306bdb06ead17bf19adc671df149aa9f0895e /fs/ext4/extents.c
parentext4: remove ext4_new_blocks() and call ext4_mb_new_blocks() directly (diff)
downloadlinux-cfe82c856747b7841a3a00d591ce9ed46f579d27.tar.xz
linux-cfe82c856747b7841a3a00d591ce9ed46f579d27.zip
ext4: remove ext4_new_meta_block()
There were only two one callers of the function ext4_new_meta_block(), which just a very simpler wrapper function around ext4_new_meta_blocks(). Change those two functions to call ext4_new_meta_blocks() directly, to save code and stack space usage. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index ea2ce3c0ae66..e5b169b44b4c 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -189,9 +189,10 @@ ext4_ext_new_meta_block(handle_t *handle, struct inode *inode,
struct ext4_extent *ex, int *err)
{
ext4_fsblk_t goal, newblock;
+ unsigned long count = 1;
goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block));
- newblock = ext4_new_meta_block(handle, inode, goal, err);
+ newblock = ext4_new_meta_blocks(handle, inode, goal, &count, err);
return newblock;
}