Files
linux/fs
Al Viro 5423426a79 switch do_new_mount_fc() to fc_mount()
Prior to the call of do_new_mount_fc() the caller has just done successful
vfs_get_tree().  Then do_new_mount_fc() does several checks on resulting
superblock, and either does fc_drop_locked() and returns an error or
proceeds to unlock the superblock and call vfs_create_mount().

The thing is, there's no reason to delay that unlock + vfs_create_mount() -
the tests do not rely upon the state of ->s_umount and
	fc_drop_locked()
	put_fs_context()
is equivalent to
	unlock ->s_umount
	put_fs_context()

Doing vfs_create_mount() before the checks allows us to move vfs_get_tree()
from caller to do_new_mount_fc() and collapse it with vfs_create_mount()
into an fc_mount() call.

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2025-09-02 19:35:58 -04:00
..
2025-06-10 22:21:16 -04:00
2025-06-11 13:41:05 -04:00
2025-08-11 14:51:50 +02:00
2025-08-18 13:16:49 +02:00
2025-09-02 19:35:56 -04:00
2025-08-15 16:10:46 +02:00
2025-09-02 19:35:57 -04:00
2025-06-29 19:03:46 -04:00
2025-05-23 14:20:44 +02:00