WSL2-Linux-Kernel/fs/kernfs
Hui Su 0288e7fa35 fs/kernfs: remove the double check of dentry->inode
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().

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Hui Su <sh_def@163.com>
Link: https://lore.kernel.org/r/20201113132143.GA119541@rlk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-09 19:03:49 +01:00
..
Kconfig
Makefile
dir.c fs/kernfs: remove the double check of dentry->inode 2020-12-09 19:03:49 +01:00
file.c fsnotify: pass dir and inode arguments to fsnotify() 2020-07-27 23:15:48 +02:00
inode.c kernfs: Add option to enable user xattrs 2020-03-16 15:53:47 -04:00
kernfs-internal.h kernfs: Add option to enable user xattrs 2020-03-16 15:53:47 -04:00
mount.c
symlink.c