diff options
Diffstat (limited to 'fs/ocfs2/xattr.c')
-rw-r--r-- | fs/ocfs2/xattr.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 2563df89fc2a..15631019dc63 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c | |||
@@ -512,7 +512,7 @@ int ocfs2_calc_xattr_init(struct inode *dir, | |||
512 | struct ocfs2_security_xattr_info *si, | 512 | struct ocfs2_security_xattr_info *si, |
513 | int *want_clusters, | 513 | int *want_clusters, |
514 | int *xattr_credits, | 514 | int *xattr_credits, |
515 | struct ocfs2_alloc_context **xattr_ac) | 515 | int *want_meta) |
516 | { | 516 | { |
517 | int ret = 0; | 517 | int ret = 0; |
518 | struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); | 518 | struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); |
@@ -554,11 +554,7 @@ int ocfs2_calc_xattr_init(struct inode *dir, | |||
554 | if (dir->i_sb->s_blocksize == OCFS2_MIN_BLOCKSIZE || | 554 | if (dir->i_sb->s_blocksize == OCFS2_MIN_BLOCKSIZE || |
555 | (S_ISDIR(mode) && ocfs2_supports_inline_data(osb)) || | 555 | (S_ISDIR(mode) && ocfs2_supports_inline_data(osb)) || |
556 | (s_size + a_size) > OCFS2_XATTR_FREE_IN_IBODY) { | 556 | (s_size + a_size) > OCFS2_XATTR_FREE_IN_IBODY) { |
557 | ret = ocfs2_reserve_new_metadata_blocks(osb, 1, xattr_ac); | 557 | *want_meta = *want_meta + 1; |
558 | if (ret) { | ||
559 | mlog_errno(ret); | ||
560 | return ret; | ||
561 | } | ||
562 | *xattr_credits += OCFS2_XATTR_BLOCK_CREATE_CREDITS; | 558 | *xattr_credits += OCFS2_XATTR_BLOCK_CREATE_CREDITS; |
563 | } | 559 | } |
564 | 560 | ||