Re: [PATCH] fs/kernfs: remove the double check of dentry->inode

2020-11-25 Thread Tejun Heo
On Fri, Nov 13, 2020 at 09:21:43PM +0800, Hui Su wrote: > In both kernfs_node_from_dentry() and in > kernfs_dentry_node(), we will check the dentry->inode > is NULL or not, which is superfluous. > > So remove the check in kernfs_node_from_dentry(). > > Signed-off-by: Hui Su Acked-by: Tejun Heo

[PATCH] fs/kernfs: remove the double check of dentry->inode

2020-11-13 Thread Hui Su
In both kernfs_node_from_dentry() and in kernfs_dentry_node(), we will check the dentry->inode is NULL or not, which is superfluous. So remove the check in kernfs_node_from_dentry(). Signed-off-by: Hui Su --- fs/kernfs/dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git