fs: add switch_fs_struct()

Don't open-code the guts of replacing current's fs struct.

Link: https://patch.msgid.link/20260601-work-kthread-nullfs-v4-1-77ee053060e0@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2026-06-01 15:56:34 +02:00
commit 21bcea3ef2
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
3 changed files with 26 additions and 16 deletions