diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-08-17 23:43:55 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-22 23:09:45 -0400 |
commit | 2999d12f4d5529b282ce201b21444590c3f9f723 (patch) | |
tree | 9500f897753a59cf47e66af2cb7fd56c05ec8c1c /fs/ocfs2/refcounttree.c | |
parent | a7fe7a3a1ab5dac8d81e531c060f51e12010133b (diff) |
ocfs2: Add reflink support for xattr.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/refcounttree.c')
-rw-r--r-- | fs/ocfs2/refcounttree.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/ocfs2/refcounttree.c b/fs/ocfs2/refcounttree.c index 5656c68a2cae..dc57d066f794 100644 --- a/fs/ocfs2/refcounttree.c +++ b/fs/ocfs2/refcounttree.c | |||
@@ -1894,12 +1894,12 @@ out: | |||
1894 | return ret; | 1894 | return ret; |
1895 | } | 1895 | } |
1896 | 1896 | ||
1897 | static int __ocfs2_increase_refcount(handle_t *handle, | 1897 | int ocfs2_increase_refcount(handle_t *handle, |
1898 | struct ocfs2_caching_info *ci, | 1898 | struct ocfs2_caching_info *ci, |
1899 | struct buffer_head *ref_root_bh, | 1899 | struct buffer_head *ref_root_bh, |
1900 | u64 cpos, u32 len, | 1900 | u64 cpos, u32 len, |
1901 | struct ocfs2_alloc_context *meta_ac, | 1901 | struct ocfs2_alloc_context *meta_ac, |
1902 | struct ocfs2_cached_dealloc_ctxt *dealloc) | 1902 | struct ocfs2_cached_dealloc_ctxt *dealloc) |
1903 | { | 1903 | { |
1904 | int ret = 0, index; | 1904 | int ret = 0, index; |
1905 | struct buffer_head *ref_leaf_bh = NULL; | 1905 | struct buffer_head *ref_leaf_bh = NULL; |
@@ -3631,9 +3631,9 @@ int ocfs2_add_refcount_flag(struct inode *inode, | |||
3631 | goto out_commit; | 3631 | goto out_commit; |
3632 | } | 3632 | } |
3633 | 3633 | ||
3634 | ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, | 3634 | ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, |
3635 | p_cluster, num_clusters, | 3635 | p_cluster, num_clusters, |
3636 | meta_ac, dealloc); | 3636 | meta_ac, dealloc); |
3637 | if (ret) { | 3637 | if (ret) { |
3638 | mlog_errno(ret); | 3638 | mlog_errno(ret); |
3639 | goto out_commit; | 3639 | goto out_commit; |
@@ -3822,9 +3822,9 @@ static int ocfs2_add_refcounted_extent(struct inode *inode, | |||
3822 | goto out_commit; | 3822 | goto out_commit; |
3823 | } | 3823 | } |
3824 | 3824 | ||
3825 | ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, | 3825 | ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, |
3826 | p_cluster, num_clusters, | 3826 | p_cluster, num_clusters, |
3827 | meta_ac, dealloc); | 3827 | meta_ac, dealloc); |
3828 | if (ret) | 3828 | if (ret) |
3829 | mlog_errno(ret); | 3829 | mlog_errno(ret); |
3830 | 3830 | ||