Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
2999d12f
Commit
2999d12f
authored
Aug 18, 2009
by
Tao Ma
Committed by
Joel Becker
Sep 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ocfs2: Add reflink support for xattr.
Signed-off-by:
Tao Ma
<
tao.ma@oracle.com
>
parent
a7fe7a3a
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
945 additions
and
12 deletions
+945
-12
fs/ocfs2/refcounttree.c
fs/ocfs2/refcounttree.c
+12
-12
fs/ocfs2/refcounttree.h
fs/ocfs2/refcounttree.h
+6
-0
fs/ocfs2/xattr.c
fs/ocfs2/xattr.c
+923
-0
fs/ocfs2/xattr.h
fs/ocfs2/xattr.h
+4
-0
No files found.
fs/ocfs2/refcounttree.c
View file @
2999d12f
...
...
@@ -1894,7 +1894,7 @@ out:
return
ret
;
}
static
int
__
ocfs2_increase_refcount
(
handle_t
*
handle
,
int
ocfs2_increase_refcount
(
handle_t
*
handle
,
struct
ocfs2_caching_info
*
ci
,
struct
buffer_head
*
ref_root_bh
,
u64
cpos
,
u32
len
,
...
...
@@ -3631,7 +3631,7 @@ int ocfs2_add_refcount_flag(struct inode *inode,
goto
out_commit
;
}
ret
=
__
ocfs2_increase_refcount
(
handle
,
ref_ci
,
ref_root_bh
,
ret
=
ocfs2_increase_refcount
(
handle
,
ref_ci
,
ref_root_bh
,
p_cluster
,
num_clusters
,
meta_ac
,
dealloc
);
if
(
ret
)
{
...
...
@@ -3822,7 +3822,7 @@ static int ocfs2_add_refcounted_extent(struct inode *inode,
goto
out_commit
;
}
ret
=
__
ocfs2_increase_refcount
(
handle
,
ref_ci
,
ref_root_bh
,
ret
=
ocfs2_increase_refcount
(
handle
,
ref_ci
,
ref_root_bh
,
p_cluster
,
num_clusters
,
meta_ac
,
dealloc
);
if
(
ret
)
...
...
fs/ocfs2/refcounttree.h
View file @
2999d12f
...
...
@@ -93,4 +93,10 @@ int ocfs2_add_refcount_flag(struct inode *inode,
int
ocfs2_remove_refcount_tree
(
struct
inode
*
inode
,
struct
buffer_head
*
di_bh
);
int
ocfs2_try_remove_refcount_tree
(
struct
inode
*
inode
,
struct
buffer_head
*
di_bh
);
int
ocfs2_increase_refcount
(
handle_t
*
handle
,
struct
ocfs2_caching_info
*
ci
,
struct
buffer_head
*
ref_root_bh
,
u64
cpos
,
u32
len
,
struct
ocfs2_alloc_context
*
meta_ac
,
struct
ocfs2_cached_dealloc_ctxt
*
dealloc
);
#endif
/* OCFS2_REFCOUNTTREE_H */
fs/ocfs2/xattr.c
View file @
2999d12f
This diff is collapsed.
Click to expand it.
fs/ocfs2/xattr.h
View file @
2999d12f
...
...
@@ -90,4 +90,8 @@ int ocfs2_xattr_attach_refcount_tree(struct inode *inode,
struct
ocfs2_caching_info
*
ref_ci
,
struct
buffer_head
*
ref_root_bh
,
struct
ocfs2_cached_dealloc_ctxt
*
dealloc
);
int
ocfs2_reflink_xattrs
(
struct
inode
*
old_inode
,
struct
buffer_head
*
old_bh
,
struct
inode
*
new_inode
,
struct
buffer_head
*
new_bh
);
#endif
/* OCFS2_XATTR_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment