mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-07 19:20:44 +00:00
Our statfs callback was still using the old buddy allocator. We add a free segments field to the super and have it track the number of free segments in the allocator. We then use that to calculate the number of free blocks for statfs. Signed-off-by: Zach Brown <zab@versity.com>
17 lines
470 B
C
17 lines
470 B
C
#ifndef _SCOUTFS_ALLOC_H_
|
|
#define _SCOUTFS_ALLOC_H_
|
|
|
|
struct scoutfs_alloc_region;
|
|
|
|
int scoutfs_alloc_segno(struct super_block *sb, u64 *segno);
|
|
int scoutfs_alloc_free(struct super_block *sb, u64 segno);
|
|
|
|
int scoutfs_alloc_has_dirty(struct super_block *sb);
|
|
int scoutfs_alloc_dirty_ring(struct super_block *sb);
|
|
u64 scoutfs_alloc_bfree(struct super_block *sb);
|
|
|
|
int scoutfs_alloc_setup(struct super_block *sb);
|
|
void scoutfs_alloc_destroy(struct super_block *sb);
|
|
|
|
#endif
|