diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 7a7a202b82ab33690534875481ac6e17f0c0701e..67fd6e9552d37174e6d5a223f36fed623bfa1f22 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, /* do not allow sys_link's with other subvols of the same device */ if (root->objectid != BTRFS_I(inode)->root->objectid) - return -EPERM; + return -EXDEV; btrfs_inc_nlink(inode); inode->i_ctime = CURRENT_TIME;