Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
nodemgmt.c File Reference
#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/compiler.h>
#include <linux/sched.h>
#include "nodelist.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

int jffs2_reserve_space (struct jffs2_sb_info *c, uint32_t minsize, uint32_t *len, int prio, uint32_t sumsize)
 
int jffs2_reserve_space_gc (struct jffs2_sb_info *c, uint32_t minsize, uint32_t *len, uint32_t sumsize)
 
struct jffs2_raw_node_refjffs2_add_physical_node_ref (struct jffs2_sb_info *c, uint32_t ofs, uint32_t len, struct jffs2_inode_cache *ic)
 
void jffs2_complete_reservation (struct jffs2_sb_info *c)
 
void jffs2_mark_node_obsolete (struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref)
 
int jffs2_thread_should_wake (struct jffs2_sb_info *c)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 12 of file nodemgmt.c.

Function Documentation

struct jffs2_raw_node_ref* jffs2_add_physical_node_ref ( struct jffs2_sb_info c,
uint32_t  ofs,
uint32_t  len,
struct jffs2_inode_cache ic 
)
read

jffs2_add_physical_node_ref - add a physical node reference to the list : superblock info : new node reference to add : length of this physical node

Should only be used to report nodes for which space has been allocated by jffs2_reserve_space.

Must be called with the alloc_sem held.

Definition at line 492 of file nodemgmt.c.

void jffs2_complete_reservation ( struct jffs2_sb_info c)

Definition at line 548 of file nodemgmt.c.

void jffs2_mark_node_obsolete ( struct jffs2_sb_info c,
struct jffs2_raw_node_ref ref 
)

Definition at line 571 of file nodemgmt.c.

int jffs2_reserve_space ( struct jffs2_sb_info c,
uint32_t  minsize,
uint32_t len,
int  prio,
uint32_t  sumsize 
)

Definition at line 74 of file nodemgmt.c.

int jffs2_reserve_space_gc ( struct jffs2_sb_info c,
uint32_t  minsize,
uint32_t len,
uint32_t  sumsize 
)

Definition at line 211 of file nodemgmt.c.

int jffs2_thread_should_wake ( struct jffs2_sb_info c)

Definition at line 829 of file nodemgmt.c.