Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
gc.c File Reference
#include "logfs.h"
#include <linux/sched.h>
#include <linux/slab.h>

Go to the source code of this file.

Macros

#define WL_DELTA   397
 
#define WL_RATELIMIT   100
 
#define MAX_OBJ_ALIASES   2600
 
#define SCAN_RATIO   512 /* number of scanned segments per gc'd segment */
 
#define LIST_SIZE   64 /* base size of candidate lists */
 
#define SCAN_ROUNDS   128 /* maximum number of complete medium scans */
 
#define SCAN_ROUNDS_HIGH   4 /* maximum number of higher-level scans */
 

Functions

u32 get_best_cand (struct super_block *sb, struct candidate_list *list, u32 *ec)
 
void logfs_gc_pass (struct super_block *sb)
 
int logfs_check_areas (struct super_block *sb)
 
int logfs_init_gc (struct super_block *sb)
 
void logfs_cleanup_gc (struct super_block *sb)
 

Macro Definition Documentation

#define LIST_SIZE   64 /* base size of candidate lists */

Definition at line 27 of file gc.c.

#define MAX_OBJ_ALIASES   2600

Definition at line 25 of file gc.c.

#define SCAN_RATIO   512 /* number of scanned segments per gc'd segment */

Definition at line 26 of file gc.c.

#define SCAN_ROUNDS   128 /* maximum number of complete medium scans */

Definition at line 28 of file gc.c.

#define SCAN_ROUNDS_HIGH   4 /* maximum number of higher-level scans */

Definition at line 29 of file gc.c.

#define WL_DELTA   397

Definition at line 23 of file gc.c.

#define WL_RATELIMIT   100

Definition at line 24 of file gc.c.

Function Documentation

u32 get_best_cand ( struct super_block sb,
struct candidate_list list,
u32 ec 
)

Definition at line 234 of file gc.c.

int logfs_check_areas ( struct super_block sb)

Definition at line 663 of file gc.c.

void logfs_cleanup_gc ( struct super_block sb)

Definition at line 713 of file gc.c.

void logfs_gc_pass ( struct super_block sb)

Definition at line 615 of file gc.c.

int logfs_init_gc ( struct super_block sb)

Definition at line 684 of file gc.c.