Skip to content

Commit 0ed883f

Browse files
author
Al Viro
committed
openpromfs: switch to d_splice_alias()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent b113a6d commit 0ed883f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/openpromfs/inode.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ static struct dentry *openpromfs_lookup(struct inode *dir, struct dentry *dentry
256256
break;
257257
}
258258

259-
d_add(dentry, inode);
260-
return NULL;
259+
return d_splice_alias(inode, dentry);
261260
}
262261

263262
static int openpromfs_readdir(struct file *file, struct dir_context *ctx)

0 commit comments

Comments
 (0)