projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c37eb
)
ocfs2: Update i_blocks in reflink operations.
author
Tao Ma
<
[email protected]
>
Wed, 10 Mar 2010 01:56:52 +0000
(09:56 +0800)
committer
Joel Becker
<
[email protected]
>
Wed, 17 Mar 2010 19:28:00 +0000
(12:28 -0700)
In reflink, we need to upate i_blocks for the target inode.
Reported-by: Jie Liu <
[email protected]
>
Signed-off-by: Tao Ma <
[email protected]
>
Signed-off-by: Joel Becker <
[email protected]
>
fs/ocfs2/refcounttree.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/refcounttree.c
b/fs/ocfs2/refcounttree.c
index 9e96921dffda4f9f9b32970c142bacc59984802a..29405f2ff616e6c32ba3488ade4296deec1d5b94 100644
(file)
--- a/
fs/ocfs2/refcounttree.c
+++ b/
fs/ocfs2/refcounttree.c
@@
-4075,6
+4075,7
@@
static int ocfs2_complete_reflink(struct inode *s_inode,
OCFS2_I(t_inode)->ip_dyn_features = OCFS2_I(s_inode)->ip_dyn_features;
spin_unlock(&OCFS2_I(t_inode)->ip_lock);
i_size_write(t_inode, size);
+ t_inode->i_blocks = s_inode->i_blocks;
di->i_xattr_inline_size = s_di->i_xattr_inline_size;
di->i_clusters = s_di->i_clusters;