1
0
Fork 0

openpromfs: switch to d_splice_alias()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
hifive-unleashed-5.1
Al Viro 2018-05-03 09:46:23 -04:00
parent b113a6d3cf
commit 0ed883fd80
1 changed files with 1 additions and 2 deletions

View File

@ -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)