aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Norris <rob.norris@truenas.com>2026-03-16 08:40:58 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2026-03-18 19:00:38 +0000
commit3ee08abd2fcef3123188e9ad61a9cd80b9b7831c (patch)
tree961ad162ee8aaf4d4edcc16030cf2377982a366c
parent96a0b202019f0afc1fa6cc831e31f56d85664fba (diff)
-rw-r--r--module/os/linux/zfs/zpl_super.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/module/os/linux/zfs/zpl_super.c b/module/os/linux/zfs/zpl_super.c
index e404e05efb55..a970959531a3 100644
--- a/module/os/linux/zfs/zpl_super.c
+++ b/module/os/linux/zfs/zpl_super.c
@@ -341,21 +341,6 @@ zpl_show_options(struct seq_file *seq, struct dentry *root)
}
static int
-zpl_fill_super(struct super_block *sb, void *data, int silent)
-{
- zfs_mnt_t *zm = (zfs_mnt_t *)data;
- fstrans_cookie_t cookie;
- int error;
-
- cookie = spl_fstrans_mark();
- error = -zfs_domount(sb, zm, silent);
- spl_fstrans_unmark(cookie);
- ASSERT3S(error, <=, 0);
-
- return (error);
-}
-
-static int
zpl_test_super(struct super_block *s, void *data)
{
zfsvfs_t *zfsvfs = s->s_fs_info;
@@ -476,12 +461,16 @@ zpl_get_tree(struct fs_context *fc)
.mnt_osname = fc->source,
.mnt_data = fc->fs_private,
};
- err = zpl_fill_super(sb, &zm,
- fc->sb_flags & SB_SILENT ? 1 : 0);
+
+ fstrans_cookie_t cookie = spl_fstrans_mark();
+ err = zfs_domount(sb, &zm, fc->sb_flags & SB_SILENT ? 1 : 0);
+ spl_fstrans_unmark(cookie);
+
if (err) {
deactivate_locked_super(sb);
return (-err);
}
+
sb->s_flags |= SB_ACTIVE;
} else if (!issnap && ((fc->sb_flags ^ sb->s_flags) & SB_RDONLY)) {
/*