combine __put_mountpoint() with unhash_mnt()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Apr 2025 21:24:10 +0000 (17:24 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Jun 2025 22:13:42 +0000 (18:13 -0400)
commit86f63980964b334ad49d5c1f132f3b9491303a15
tree729da1ed821560b8753db4f6a5b4f4546425dd55
parente30da2a20e31ab958d41e5a2c764968d95f17b61
combine __put_mountpoint() with unhash_mnt()

A call of unhash_mnt() is immediately followed by passing its return
value to __put_mountpoint(); the shrink list given to __put_mountpoint()
will be ex_mountpoints when called from umount_mnt() and list when called
from mntput_no_expire().

Replace with __umount_mnt(mount, shrink_list), moving the call of
__put_mountpoint() into it (and returning nothing), adjust the
callers.

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c