OSDN Git Service

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)
commit1f58bb18f6f28d1df0b7144d90bc90ee5672416d
tree42f98ffbdf6a0f0612204052223770c2bf66d41e
parent1a6e9e76b713d9632783efe78295ed3507fdad64
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