]> git.baikalelectronics.ru Git - kernel.git/commit
mount_pseudo(): drop 'name' argument, switch to d_make_root()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 May 2019 12:44:57 +0000 (13:44 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 25 May 2019 21:59:24 +0000 (17:59 -0400)
commit861230a4a309ea197b1ce0ed7153a8981434771d
tree42f98ffbdf6a0f0612204052223770c2bf66d41e
parent4bd74e4ab05b23d12b101e566475b4dc457d0b75
mount_pseudo(): drop 'name' argument, switch to d_make_root()

Once upon a time we used to set ->d_name of e.g. pipefs root
so that d_path() on pipes would work.  These days it's
completely pointless - dentries of pipes are not even connected
to pipefs root.  However, mount_pseudo() had set the root
dentry name (passed as the second argument) and callers
kept inventing names to pass to it.  Including those that
didn't *have* any non-root dentries to start with...

All of that had been pointless for about 8 years now; it's
time to get rid of that cargo-culting...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
17 files changed:
arch/ia64/kernel/perfmon.c
drivers/dax/super.c
drivers/gpu/drm/drm_drv.c
drivers/misc/cxl/api.c
drivers/scsi/cxlflash/ocxl_hw.c
drivers/virtio/virtio_balloon.c
fs/aio.c
fs/anon_inodes.c
fs/block_dev.c
fs/btrfs/tests/btrfs-tests.c
fs/libfs.c
fs/nsfs.c
fs/pipe.c
include/linux/fs.h
mm/z3fold.c
mm/zsmalloc.c
net/socket.c