diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-08-18 05:44:03 +0200 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-23 05:09:46 +0200 |
commit | 7540c1a77b26bc2f9d86a0bfbe6597b05ec5f93d (patch) | |
tree | 4b0414f74d265cfe496d5e5f39c6c6d240f6e713 /fs/ocfs2/suballoc.h | |
parent | ocfs2: Modify removing xattr process for refcount. (diff) | |
download | linux-7540c1a77b26bc2f9d86a0bfbe6597b05ec5f93d.tar.xz linux-7540c1a77b26bc2f9d86a0bfbe6597b05ec5f93d.zip |
ocfs2: Don't merge in 1st refcount ops of reflink.
Actually the whole reflink will touch refcount tree 2 times:
1. It will add the clusters in the extent record to the tree if it
isn't refcounted before.
2. It will add 1 refcount to these clusters when it add these
extent records to the tree.
So actually we shouldn't do merge in the 1st operation since the 2nd
one will soon be called and we may have to split it again. Do a merge
first and split soon is a waste of time. So we only merge in the 2nd
round. This is done by adding a new internal __ocfs2_increase_refcount
and call it with "not-merge" for 1st refcount operation in reflink.
This also has a side-effect that we don't need to worry too much about
the metadata allocation in the 2nd round since it will only merge and
no split will happen for those records.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/suballoc.h')
0 files changed, 0 insertions, 0 deletions