bcachefs: Fix creation of lost+found
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 11 Oct 2019 19:03:32 +0000 (15:03 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:29 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/recovery.c

index 095eef3828ceca486ee6020cc73cc7f793f4e8f5..23f3ed54faddd4c9d04ec828771680ed486c1ded 100644 (file)
@@ -1011,7 +1011,7 @@ int bch2_fs_initialize(struct bch_fs *c)
                bch2_create_trans(&trans, BCACHEFS_ROOT_INO,
                                  &root_inode, &lostfound_inode,
                                  &lostfound,
-                                 0, 0, 0755, 0,
+                                 0, 0, S_IFDIR|0755, 0,
                                  NULL, NULL));
        if (ret)
                goto err;