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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ocfs2/refcounttree.c b/fs/ocfs2/refcounttree.c
index b69dd14c0b9b..7dc818b87cd8 100644
--- a/fs/ocfs2/refcounttree.c
+++ b/fs/ocfs2/refcounttree.c
@@ -4419,8 +4419,9 @@ static int ocfs2_vfs_reflink(struct dentry *old_dentry, struct inode *dir,
4419 } 4419 }
4420 4420
4421 mutex_lock(&inode->i_mutex); 4421 mutex_lock(&inode->i_mutex);
4422 dquot_initialize(dir); 4422 error = dquot_initialize(dir);
4423 error = ocfs2_reflink(old_dentry, dir, new_dentry, preserve); 4423 if (!error)
4424 error = ocfs2_reflink(old_dentry, dir, new_dentry, preserve);
4424 mutex_unlock(&inode->i_mutex); 4425 mutex_unlock(&inode->i_mutex);
4425 if (!error) 4426 if (!error)
4426 fsnotify_create(dir, new_dentry); 4427 fsnotify_create(dir, new_dentry);