diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index 3cced2b99f3f..0f2308e53d65 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -797,7 +797,7 @@ static int check_lostfound(struct bch_fs *c, bch2_create_trans(&trans, BCACHEFS_ROOT_INO, root_inode, lostfound_inode, &lostfound, - 0, 0, S_IFDIR|0755, 0, NULL, NULL)); + 0, 0, S_IFDIR|0700, 0, NULL, NULL)); if (ret) bch_err(c, "error creating lost+found: %i", ret); diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 2c441a278044..d1184bf62cae 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -1013,7 +1013,7 @@ int bch2_fs_initialize(struct bch_fs *c) bch2_create_trans(&trans, BCACHEFS_ROOT_INO, &root_inode, &lostfound_inode, &lostfound, - 0, 0, S_IFDIR|0755, 0, + 0, 0, S_IFDIR|0700, 0, NULL, NULL)); if (ret) goto err;