aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/refcounttree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/refcounttree.c')
-rw-r--r--fs/ocfs2/refcounttree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ocfs2/refcounttree.c b/fs/ocfs2/refcounttree.c
index 4793f36f6518..32949df10694 100644
--- a/fs/ocfs2/refcounttree.c
+++ b/fs/ocfs2/refcounttree.c
@@ -4166,6 +4166,12 @@ static int __ocfs2_reflink(struct dentry *old_dentry,
4166 struct inode *inode = old_dentry->d_inode; 4166 struct inode *inode = old_dentry->d_inode;
4167 struct buffer_head *new_bh = NULL; 4167 struct buffer_head *new_bh = NULL;
4168 4168
4169 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) {
4170 ret = -EINVAL;
4171 mlog_errno(ret);
4172 goto out;
4173 }
4174
4169 ret = filemap_fdatawrite(inode->i_mapping); 4175 ret = filemap_fdatawrite(inode->i_mapping);
4170 if (ret) { 4176 if (ret) {
4171 mlog_errno(ret); 4177 mlog_errno(ret);