Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:42816 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030816AbeEYXy2 (ORCPT ); Fri, 25 May 2018 19:54:28 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fMMXS-0002Xs-MN for linux-fsdevel@vger.kernel.org; Fri, 25 May 2018 23:54:26 +0000 From: Al Viro To: linux-fsdevel@vger.kernel.org Subject: [PATCH 01/10] openpromfs: switch to d_splice_alias() Date: Sat, 26 May 2018 00:54:17 +0100 Message-Id: <20180525235426.9750-1-viro@ZenIV.linux.org.uk> In-Reply-To: <20180525235326.GJ30522@ZenIV.linux.org.uk> References: <20180525235326.GJ30522@ZenIV.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Al Viro Signed-off-by: Al Viro --- fs/openpromfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 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 @@ static struct dentry *openpromfs_lookup(struct inode *dir, struct dentry *dentry break; } - d_add(dentry, inode); - return NULL; + return d_splice_alias(inode, dentry); } static int openpromfs_readdir(struct file *file, struct dir_context *ctx) -- 2.11.0