We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8300807 commit 3837d20Copy full SHA for 3837d20
fs/btrfs/inode.c
@@ -5807,16 +5807,10 @@ static int btrfs_dentry_delete(const struct dentry *dentry)
5807
static struct dentry *btrfs_lookup(struct inode *dir, struct dentry *dentry,
5808
unsigned int flags)
5809
{
5810
- struct inode *inode;
5811
-
5812
- inode = btrfs_lookup_dentry(dir, dentry);
5813
- if (IS_ERR(inode)) {
5814
- if (PTR_ERR(inode) == -ENOENT)
5815
- inode = NULL;
5816
- else
5817
- return ERR_CAST(inode);
5818
- }
+ struct inode *inode = btrfs_lookup_dentry(dir, dentry);
5819
+ if (inode == ERR_PTR(-ENOENT))
+ inode = NULL;
5820
return d_splice_alias(inode, dentry);
5821
}
5822
0 commit comments