Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130827
b: refs/heads/master
c: 554e7f9
h: refs/heads/master
i:
  130825: 13729f1
  130823: 582d152
v: v3
  • Loading branch information
Tao Ma authored and Mark Fasheh committed Feb 2, 2009
1 parent 6ade8b4 commit 720db79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e0333429a6280e6eb3c98845e4eed90d5f8078a
refs/heads/master: 554e7f9e043e29da79c044f7a55efe4fad40701e
17 changes: 8 additions & 9 deletions trunk/fs/ocfs2/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4729,13 +4729,6 @@ static int ocfs2_xattr_bucket_value_truncate(struct inode *inode,
vb.vb_xv = (struct ocfs2_xattr_value_root *)
(vb.vb_bh->b_data + offset % blocksize);

ret = ocfs2_xattr_bucket_journal_access(ctxt->handle, bucket,
OCFS2_JOURNAL_ACCESS_WRITE);
if (ret) {
mlog_errno(ret);
goto out;
}

/*
* From here on out we have to dirty the bucket. The generic
* value calls only modify one of the bucket's bhs, but we need
Expand All @@ -4748,12 +4741,18 @@ static int ocfs2_xattr_bucket_value_truncate(struct inode *inode,
ret = ocfs2_xattr_value_truncate(inode, &vb, len, ctxt);
if (ret) {
mlog_errno(ret);
goto out_dirty;
goto out;
}

ret = ocfs2_xattr_bucket_journal_access(ctxt->handle, bucket,
OCFS2_JOURNAL_ACCESS_WRITE);
if (ret) {
mlog_errno(ret);
goto out;
}

xe->xe_value_size = cpu_to_le64(len);

out_dirty:
ocfs2_xattr_bucket_journal_dirty(ctxt->handle, bucket);

out:
Expand Down

0 comments on commit 720db79

Please sign in to comment.