summaryrefslogtreecommitdiff
path: root/fs/openpromfs/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-05-03 16:46:23 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2018-05-22 21:27:57 +0300
commit0ed883fd8023db28b9b01633c0612b006d2f0ab4 (patch)
treef62bf7ff6592d09e9d3f8a9a44f0d991094f06c5 /fs/openpromfs/inode.c
parentb113a6d3cf939e9f26c89ba0ad6d8a1503bac1b2 (diff)
downloadlinux-0ed883fd8023db28b9b01633c0612b006d2f0ab4.tar.xz
openpromfs: switch to d_splice_alias()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/openpromfs/inode.c')
-rw-r--r--fs/openpromfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c
index 2200662a9bf1..607092f367ad 100644
--- a/fs/openpromfs/inode.c
+++ b/fs/openpromfs/inode.c
@@ -256,8 +256,7 @@ found:
break;
}
- d_add(dentry, inode);
- return NULL;
+ return d_splice_alias(inode, dentry);
}
static int openpromfs_readdir(struct file *file, struct dir_context *ctx)