Files
rk35xx-android14/external/e2fsprogs/misc/e2freefrag.h
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

21 lines
668 B
C

#include <sys/types.h>
#define DEFAULT_CHUNKSIZE (1024*1024)
#define MAX_HIST 32
struct free_chunk_histogram {
unsigned long fc_chunks[MAX_HIST];
unsigned long fc_blocks[MAX_HIST];
};
struct chunk_info {
unsigned long chunkbytes; /* chunk size in bytes */
int chunkbits; /* chunk size in bits */
unsigned long free_chunks; /* total free chunks of given size */
unsigned long real_free_chunks; /* free chunks of any size */
int blocksize_bits; /* fs blocksize in bits */
int blks_in_chunk; /* number of blocks in a chunk */
unsigned long min, max, avg; /* chunk size stats */
struct free_chunk_histogram histogram; /* histogram of all chunk sizes*/
};