mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-07 04:26:29 +00:00
Add a sync_fs method that writes dirty items into level 0 item blocks. Add chunk allocator code to allocate new item blocks in free chunks. As the allocator bitmap is modified it adds bitmap entries to the ring. As new item blocks are allocated we create manifest entries that describe their block location and keys. The entry is added to the in-memory manifest and to entries in the ring. This isn't complete and there's still bugs but this is enough to start building on. Signed-off-by: Zach Brown <zab@versity.com>
9 lines
219 B
C
9 lines
219 B
C
#ifndef _SCOUTFS_CHUNK_H_
|
|
#define _SCOUTFS_CHUNK_H_
|
|
|
|
void scoutfs_set_chunk_alloc_bits(struct super_block *sb,
|
|
struct scoutfs_ring_bitmap *bm);
|
|
int scoutfs_alloc_chunk(struct super_block *sb, u64 *blkno);
|
|
|
|
#endif
|