]> www.infradead.org Git - users/jedix/linux-maple.git/commit
devtmpfs: replace ->mount with ->get_tree in public instance
authorEric Sandeen <sandeen@redhat.com>
Wed, 5 Feb 2025 21:34:31 +0000 (15:34 -0600)
committerChristian Brauner <brauner@kernel.org>
Thu, 6 Feb 2025 10:51:43 +0000 (11:51 +0100)
commitcb0e0a8bf4e1e1c8cd6d11ccaa355a23e1853566
tree312d051e616458c5a2191bfac7cdb67989e19a86
parentcc0876f817d6d1636795e97c20c3b2b1e177718c
devtmpfs: replace ->mount with ->get_tree in public instance

To finalize mount API conversion, remove the ->mount op from the public
instance in favor of ->get_tree etc. Copy most ops from the underlying
ops vector (whether it's shmem or ramfs) and substitute our own
->get_tree which simply takes an extra reference on the existing internal
mount as before.

Thanks to Al for the fs_context_for_reconfigure() idea.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Link: https://lore.kernel.org/r/20250205213931.74614-4-sandeen@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
drivers/base/devtmpfs.c