diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-03 09:46:23 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-22 14:27:57 -0400 |
commit | 0ed883fd8023db28b9b01633c0612b006d2f0ab4 (patch) | |
tree | f62bf7ff6592d09e9d3f8a9a44f0d991094f06c5 /fs/openpromfs | |
parent | b113a6d3cf939e9f26c89ba0ad6d8a1503bac1b2 (diff) | |
download | linux-0ed883fd8023db28b9b01633c0612b006d2f0ab4.tar.gz linux-0ed883fd8023db28b9b01633c0612b006d2f0ab4.tar.bz2 linux-0ed883fd8023db28b9b01633c0612b006d2f0ab4.zip |
openpromfs: switch to d_splice_alias()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/openpromfs')
-rw-r--r-- | fs/openpromfs/inode.c | 3 |
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) |