summaryrefslogtreecommitdiff
path: root/fs/super.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2025-05-30 15:38:29 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2025-05-30 15:38:29 -0700
commit0f70f5b08a47a3bc1a252e5f451a137cde7c98ce (patch)
treeb01511e2e147a516392e9e6a9f7b1004e1097045 /fs/super.c
parentedb94482e9d6da6e397e8b1cd0400d673b24fd35 (diff)
parent2dbf6e0df447d1542f8fd158b17a06d2e8ede15e (diff)
downloadlinux-0f70f5b08a47a3bc1a252e5f451a137cde7c98ce.tar.gz
linux-0f70f5b08a47a3bc1a252e5f451a137cde7c98ce.tar.bz2
linux-0f70f5b08a47a3bc1a252e5f451a137cde7c98ce.zip
Merge tag 'pull-automount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull automount updates from Al Viro: "Automount wart removal A bunch of odd boilerplate gone from instances - the reason for those was the need to protect the yet-to-be-attched mount from mark_mounts_for_expiry() deciding to take it out. But that's easy to detect and take care of in mark_mounts_for_expiry() itself; no need to have every instance simulate mount being busy by grabbing an extra reference to it, with finish_automount() undoing that once it attaches that mount. Should've done it that way from the very beginning... This is a flagday change, thankfully there are very few instances. vfs_submount() is gone - its sole remaining user (trace_automount) had been switched to saner primitives" * tag 'pull-automount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: kill vfs_submount() saner calling conventions for ->d_automount()
Diffstat (limited to 'fs/super.c')
-rw-r--r--fs/super.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/super.c b/fs/super.c
index bcc4e87123c8..21799e213fd7 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -824,13 +824,6 @@ struct super_block *sget(struct file_system_type *type,
struct super_block *old;
int err;
- /* We don't yet pass the user namespace of the parent
- * mount through to here so always use &init_user_ns
- * until that changes.
- */
- if (flags & SB_SUBMOUNT)
- user_ns = &init_user_ns;
-
retry:
spin_lock(&sb_lock);
if (test) {
@@ -850,7 +843,7 @@ retry:
}
if (!s) {
spin_unlock(&sb_lock);
- s = alloc_super(type, (flags & ~SB_SUBMOUNT), user_ns);
+ s = alloc_super(type, flags, user_ns);
if (!s)
return ERR_PTR(-ENOMEM);
goto retry;