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>
This commit is contained in:
committed by
Al Viro
parent
aae8a97d3e
commit
f17b604207
@@ -1122,10 +1122,6 @@ static int reiserfs_link(struct dentry *old_dentry, struct inode *dir,
|
||||
reiserfs_write_unlock(dir->i_sb);
|
||||
return -EMLINK;
|
||||
}
|
||||
if (inode->i_nlink == 0) {
|
||||
reiserfs_write_unlock(dir->i_sb);
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
/* inc before scheduling so reiserfs_unlink knows we are here */
|
||||
inc_nlink(inode);
|
||||
|
||||
Reference in New Issue
Block a user