diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-01-29 18:43:30 +0530 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-15 02:21:44 -0400 |
commit | f17b6042073e7000a90063f7edbca59a5bd1caa2 (patch) | |
tree | e893485df882c770da602030c6c1098b11ea3d56 /fs/btrfs | |
parent | aae8a97d3ec30788790d1720b71d76fd8eb44b73 (diff) | |
download | kernel_samsung_smdk4412-f17b6042073e7000a90063f7edbca59a5bd1caa2.zip kernel_samsung_smdk4412-f17b6042073e7000a90063f7edbca59a5bd1caa2.tar.gz kernel_samsung_smdk4412-f17b6042073e7000a90063f7edbca59a5bd1caa2.tar.bz2 |
fs: Remove i_nlink check from file system link callback
Now that VFS check for inode->i_nlink == 0 and returns proper
error, remove similar check from file system
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 0efdb65..c23f050 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -4806,9 +4806,6 @@ static int btrfs_link(struct dentry *old_dentry, struct inode *dir, int err; int drop_inode = 0; - if (inode->i_nlink == 0) - return -ENOENT; - /* do not allow sys_link's with other subvols of the same device */ if (root->objectid != BTRFS_I(inode)->root->objectid) return -EPERM; |