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/xattr.c | |
parent | 815a1130687ffac2c3e91513ce64aab629d6a54d (diff) | |
download | blackbird-op-linux-cfe82c856747b7841a3a00d591ce9ed46f579d27.tar.gz blackbird-op-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/xattr.c')
-rw-r--r-- | fs/ext4/xattr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index 80626d516fee..f896e2c452f0 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c @@ -689,6 +689,7 @@ ext4_xattr_block_set(handle_t *handle, struct inode *inode, struct ext4_xattr_info *i, struct ext4_xattr_block_find *bs) { + unsigned long count = 1; struct super_block *sb = inode->i_sb; struct buffer_head *new_bh = NULL; struct ext4_xattr_search *s = &bs->s; @@ -810,8 +811,8 @@ inserted: /* We need to allocate a new block */ ext4_fsblk_t goal = ext4_group_first_block_no(sb, EXT4_I(inode)->i_block_group); - ext4_fsblk_t block = ext4_new_meta_block(handle, inode, - goal, &error); + ext4_fsblk_t block = ext4_new_meta_blocks(handle, inode, + goal, &count, &error); if (error) goto cleanup; ea_idebug(inode, "creating block %d", block); |