Linux Kernel
3.7.1
|
#include <ubifs.h>
Data Fields | |
int | empty_lebs |
int | taken_empty_lebs |
int | idx_lebs |
long long | total_free |
long long | total_dirty |
long long | total_used |
long long | total_dead |
long long | total_dark |
struct ubifs_lp_stats - statistics of eraseblocks in the main area. : number of empty LEBs : number of taken LEBs : number of indexing LEBs : total free space in bytes (includes all LEBs) : total dirty space in bytes (includes all LEBs) : total used space in bytes (does not include index LEBs) : total dead space in bytes (does not include index LEBs) : total dark space in bytes (does not include index LEBs)
The field counts the LEBs that are in the transient state of having been "taken" for use but not yet written to. is needed to account correctly for , otherwise could be used by itself (in which case 'unused_lebs' would be a better name). In the case of , it is "taken" at mount time or whenever a LEB is retained by GC, but unlike other empty LEBs that are "taken", it may not be written straight away (i.e. before the next commit start or unmount), so either must be specially accounted for, or the current approach followed i.e. count it under .
includes .
, and fields do not account indexing LEBs.