[git pull] mount-related stuff
From: Al Viro
Date: Sat Jun 04 2022 - 21:22:26 EST
The following changes since commit 3123109284176b1532874591f7c81f3837bbdc17:
Linux 5.18-rc1 (2022-04-03 14:08:21 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git tags/pull-18-rc1-work.mount
for you to fetch changes up to 70f8d9c5750bbb0ca4ef7e23d6abcb05e6061138:
move mount-related externs from fs.h to mount.h (2022-05-19 23:25:48 -0400)
----------------------------------------------------------------
Cleanups (and one fix) around struct mount handling.
The fix is usermode_driver.c one - once you've done kern_mount(), you
must kern_unmount(); simple mntput() will end up with a leak. Several
failure exits in there messed up that way... In practice you won't
hit those particular failure exits without fault injection, though.
----------------------------------------------------------------
Al Viro (5):
uninline may_mount() and don't opencode it in fspick(2)/fsopen(2)
linux/mount.h: trim includes
m->mnt_root->d_inode->i_sb is a weird way to spell m->mnt_sb...
blob_to_mnt(): kern_unmount() is needed to undo kern_mount()
move mount-related externs from fs.h to mount.h
arch/alpha/kernel/osf_sys.c | 1 +
fs/fsopen.c | 4 ++--
fs/internal.h | 1 +
fs/namespace.c | 2 +-
fs/nfs/nfs4file.c | 4 ++--
include/linux/fs.h | 11 -----------
include/linux/mount.h | 29 +++++++++++++++++------------
kernel/usermode_driver.c | 4 ++--
security/smack/smackfs.c | 1 +
9 files changed, 27 insertions(+), 30 deletions(-)