summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-03 15:23:07 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-03-14 23:37:44 -0400
commitfd4bcedb60f9f651c3b1e82fd6453a1fcecb4cc0 (patch)
tree3b714e4101c5324b566de4939fd0c36a1ae50014
parente84a295a1a726bc792f8705ec8505c9a118d86a8 (diff)
bcachefs: Initialize super_block->s_uuid
Need to fix this oversight for the new UUID/sysfspath ioctls; also, initialize the sysfs path. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/fs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c
index ec9cf4b8faf1..cfc9d90ab179 100644
--- a/fs/bcachefs/fs.c
+++ b/fs/bcachefs/fs.c
@@ -1881,6 +1881,9 @@ got_sb:
c->vfs_sb = sb;
strscpy(sb->s_id, c->name, sizeof(sb->s_id));
+ super_set_uuid(sb, c->sb.user_uuid.b, 16);
+ super_set_sysfs_name_uuid(sb);
+
ret = super_setup_bdi(sb);
if (ret)
goto err_put_super;