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) |
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, | |||
189 | struct ext4_extent *ex, int *err) | 189 | struct ext4_extent *ex, int *err) |
190 | { | 190 | { |
191 | ext4_fsblk_t goal, newblock; | 191 | ext4_fsblk_t goal, newblock; |
192 | unsigned long count = 1; | ||
192 | 193 | ||
193 | goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block)); | 194 | goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block)); |
194 | newblock = ext4_new_meta_block(handle, inode, goal, err); | 195 | newblock = ext4_new_meta_blocks(handle, inode, goal, &count, err); |
195 | return newblock; | 196 | return newblock; |
196 | } | 197 | } |
197 | 198 | ||