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

#include <logfs.h>

Data Fields

struct rb_node rb_node
 
struct candidate_listlist
 
u32 segno
 
u32 valid
 
u32 erase_count
 
u8 dist
 

Detailed Description

struct gc_candidate - "candidate" segment to be garbage collected next

: list (either free of low) : segment number : number of valid bytes : erase count of segment : distance from tree root

Candidates can be on two lists. The free list contains electees rather than candidates - segments that no longer contain any valid data. The low list contains candidates to be picked for GC. It should be kept short. It is not required to always pick a perfect candidate. In the worst case GC will have to move more data than absolutely necessary.

Definition at line 188 of file logfs.h.

Field Documentation

u8 dist

Definition at line 194 of file logfs.h.

u32 erase_count

Definition at line 193 of file logfs.h.

Definition at line 190 of file logfs.h.

Definition at line 189 of file logfs.h.

u32 segno

Definition at line 191 of file logfs.h.

u32 valid

Definition at line 192 of file logfs.h.


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