Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
ubifs_lp_stats Struct Reference

#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
 

Detailed Description

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.

Definition at line 520 of file ubifs.h.

Field Documentation

int empty_lebs

Definition at line 521 of file ubifs.h.

int idx_lebs

Definition at line 523 of file ubifs.h.

int taken_empty_lebs

Definition at line 522 of file ubifs.h.

long long total_dark

Definition at line 528 of file ubifs.h.

long long total_dead

Definition at line 527 of file ubifs.h.

long long total_dirty

Definition at line 525 of file ubifs.h.

long long total_free

Definition at line 524 of file ubifs.h.

long long total_used

Definition at line 526 of file ubifs.h.


The documentation for this struct was generated from the following file: