aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 7a7a202b82ab..67fd6e9552d3 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4817,7 +4817,7 @@ static int btrfs_link(struct dentry *old_dentry, struct inode *dir,
4817 4817
4818 /* do not allow sys_link's with other subvols of the same device */ 4818 /* do not allow sys_link's with other subvols of the same device */
4819 if (root->objectid != BTRFS_I(inode)->root->objectid) 4819 if (root->objectid != BTRFS_I(inode)->root->objectid)
4820 return -EPERM; 4820 return -EXDEV;
4821 4821
4822 btrfs_inc_nlink(inode); 4822 btrfs_inc_nlink(inode);
4823 inode->i_ctime = CURRENT_TIME; 4823 inode->i_ctime = CURRENT_TIME;