aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ocfs2/xattr.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c
index 6db68a23a296..df53a2ce2de5 100644
--- a/fs/ocfs2/xattr.c
+++ b/fs/ocfs2/xattr.c
@@ -5094,30 +5094,30 @@ static int ocfs2_delete_xattr_in_bucket(struct inode *inode,
5094 5094
5095 ocfs2_init_dealloc_ctxt(&ctxt.dealloc); 5095 ocfs2_init_dealloc_ctxt(&ctxt.dealloc);
5096 5096
5097 ctxt.handle = ocfs2_start_trans(osb, credits);
5098 if (IS_ERR(ctxt.handle)) {
5099 ret = PTR_ERR(ctxt.handle);
5100 mlog_errno(ret);
5101 goto out;
5102 }
5103
5104 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { 5097 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) {
5105 xe = &xh->xh_entries[i]; 5098 xe = &xh->xh_entries[i];
5106 if (ocfs2_xattr_is_local(xe)) 5099 if (ocfs2_xattr_is_local(xe))
5107 continue; 5100 continue;
5108 5101
5102 ctxt.handle = ocfs2_start_trans(osb, credits);
5103 if (IS_ERR(ctxt.handle)) {
5104 ret = PTR_ERR(ctxt.handle);
5105 mlog_errno(ret);
5106 break;
5107 }
5108
5109 ret = ocfs2_xattr_bucket_value_truncate(inode, bucket, 5109 ret = ocfs2_xattr_bucket_value_truncate(inode, bucket,
5110 i, 0, &ctxt); 5110 i, 0, &ctxt);
5111
5112 ocfs2_commit_trans(osb, ctxt.handle);
5111 if (ret) { 5113 if (ret) {
5112 mlog_errno(ret); 5114 mlog_errno(ret);
5113 break; 5115 break;
5114 } 5116 }
5115 } 5117 }
5116 5118
5117 ret = ocfs2_commit_trans(osb, ctxt.handle);
5118 ocfs2_schedule_truncate_log_flush(osb, 1); 5119 ocfs2_schedule_truncate_log_flush(osb, 1);
5119 ocfs2_run_deallocs(osb, &ctxt.dealloc); 5120 ocfs2_run_deallocs(osb, &ctxt.dealloc);
5120out:
5121 return ret; 5121 return ret;
5122} 5122}
5123 5123