diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-12-07 14:10:54 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-12-07 14:10:54 -0500 |
commit | cfe82c856747b7841a3a00d591ce9ed46f579d27 (patch) | |
tree | b5a306bdb06ead17bf19adc671df149aa9f0895e /fs/ext4/extents.c | |
parent | 815a1130687ffac2c3e91513ce64aab629d6a54d (diff) | |
download | linux-cfe82c856747b7841a3a00d591ce9ed46f579d27.tar.bz2 |
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.c | 3 |
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; } |