linux/super: match vfs_t lifetime to fs_context

vfs_t is initially just parameters for the mount or remount operation,
so match them to the lifetime of the fs_context that represents that
operation.

When we actually execute the operation (calling .get_tree or .reconfigure),
transfer ownership of those options to the associated zfsvfs_t.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@truenas.com>
Closes #18377
This commit is contained in:
Rob Norris
2026-03-26 11:15:38 +11:00
committed by Tony Hutter
parent f5a60b6cae
commit 43eed9ee41
3 changed files with 82 additions and 17 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ typedef struct vfs {
typedef struct zfs_mnt {
const char *mnt_osname; /* Objset name */
char *mnt_data; /* Raw mount options */
vfs_t *mnt_opts; /* Parsed options */
} zfs_mnt_t;
struct zfsvfs {