summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-05-03 15:46:23 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2018-05-22 20:27:57 +0200
commit0ed883fd8023db28b9b01633c0612b006d2f0ab4 (patch)
treef62bf7ff6592d09e9d3f8a9a44f0d991094f06c5 /fs
parentxfs_vn_lookup: simplify a bit (diff)
downloadlinux-0ed883fd8023db28b9b01633c0612b006d2f0ab4.tar.xz
linux-0ed883fd8023db28b9b01633c0612b006d2f0ab4.zip
openpromfs: switch to d_splice_alias()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-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)