scoutfs: initialize block alloc past mkfs blocks

The format doesn't yet record free blocks.  We've been relying on the
scary initialization of the block allocator past the blocks that are
written by mkfs.  And it was wrong.  This garbage will be replaced with
an allocator in a few commits.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2016-04-14 13:13:18 -07:00
parent 5d77fa4f18
commit 3e5eeaa80c

View File

@@ -80,7 +80,7 @@ static int read_supers(struct super_block *sb)
* XXX These don't exist in the super yet. They should soon.
*/
atomic64_set(&sbi->next_ino, SCOUTFS_ROOT_INO + 1);
atomic64_set(&sbi->next_blkno, 2);
atomic64_set(&sbi->next_blkno, 6);
return 0;
}