diff options
author | Tao Ma <tao.ma@oracle.com> | 2008-11-12 01:27:01 +0100 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 17:34:19 +0100 |
commit | 85db90e77806d48a19fda77dabe8897d369a1710 (patch) | |
tree | daaceb3943214b83b7784e8f4170c5321d69ea5f /fs/ocfs2/alloc.h | |
parent | ocfs2/xattr: Reserve meta/data at the beginning of ocfs2_xattr_set. (diff) | |
download | linux-85db90e77806d48a19fda77dabe8897d369a1710.tar.xz linux-85db90e77806d48a19fda77dabe8897d369a1710.zip |
ocfs2/xattr: Merge xattr set transaction.
In current ocfs2/xattr, the whole xattr set is divided into
many steps are many transaction are used, this make the
xattr set process isn't like a real transaction, so this
patch try to merge all the transaction into one. Another
benefit is that acl can use it easily now.
I don't merge the transaction of deleting xattr when we
remove an inode. The reason is that if we have a large number
of xattrs and every xattrs has large values(large enough
for outside storage), the whole transaction will be very
huge and it looks like jbd can't handle it(I meet with a
jbd complain once). And the old inode removal is also divided
into many steps, so I'd like to leave as it is.
Note:
In xattr set, I try to avoid ocfs2_extend_trans since if
the credits aren't enough for the extension, it will commit
all the dirty blocks and create a new transaction which may
lead to inconsistency in metadata. All ocfs2_extend_trans
remained are safe now.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/alloc.h')
0 files changed, 0 insertions, 0 deletions