aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/xattr.c')
-rw-r--r--fs/ext4/xattr.c5
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,
689 struct ext4_xattr_info *i, 689 struct ext4_xattr_info *i,
690 struct ext4_xattr_block_find *bs) 690 struct ext4_xattr_block_find *bs)
691{ 691{
692 unsigned long count = 1;
692 struct super_block *sb = inode->i_sb; 693 struct super_block *sb = inode->i_sb;
693 struct buffer_head *new_bh = NULL; 694 struct buffer_head *new_bh = NULL;
694 struct ext4_xattr_search *s = &bs->s; 695 struct ext4_xattr_search *s = &bs->s;
@@ -810,8 +811,8 @@ inserted:
810 /* We need to allocate a new block */ 811 /* We need to allocate a new block */
811 ext4_fsblk_t goal = ext4_group_first_block_no(sb, 812 ext4_fsblk_t goal = ext4_group_first_block_no(sb,
812 EXT4_I(inode)->i_block_group); 813 EXT4_I(inode)->i_block_group);
813 ext4_fsblk_t block = ext4_new_meta_block(handle, inode, 814 ext4_fsblk_t block = ext4_new_meta_blocks(handle, inode,
814 goal, &error); 815 goal, &count, &error);
815 if (error) 816 if (error)
816 goto cleanup; 817 goto cleanup;
817 ea_idebug(inode, "creating block %d", block); 818 ea_idebug(inode, "creating block %d", block);