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

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

void jffs2_add_fd_to_list (struct jffs2_sb_info *c, struct jffs2_full_dirent *new, struct jffs2_full_dirent **list)
 
uint32_t jffs2_truncate_fragtree (struct jffs2_sb_info *c, struct rb_root *list, uint32_t size)
 
int jffs2_add_full_dnode_to_inode (struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn)
 
void jffs2_set_inocache_state (struct jffs2_sb_info *c, struct jffs2_inode_cache *ic, int state)
 
struct jffs2_inode_cachejffs2_get_ino_cache (struct jffs2_sb_info *c, uint32_t ino)
 
void jffs2_add_ino_cache (struct jffs2_sb_info *c, struct jffs2_inode_cache *new)
 
void jffs2_del_ino_cache (struct jffs2_sb_info *c, struct jffs2_inode_cache *old)
 
void jffs2_free_ino_caches (struct jffs2_sb_info *c)
 
void jffs2_free_raw_node_refs (struct jffs2_sb_info *c)
 
struct jffs2_node_fragjffs2_lookup_node_frag (struct rb_root *fragtree, uint32_t offset)
 
void jffs2_kill_fragtree (struct rb_root *root, struct jffs2_sb_info *c)
 
struct jffs2_raw_node_refjffs2_link_node_ref (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t ofs, uint32_t len, struct jffs2_inode_cache *ic)
 
int jffs2_scan_dirty_space (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t size)
 
uint32_t __jffs2_ref_totlen (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_node_ref *ref)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 12 of file nodelist.c.

Function Documentation

uint32_t __jffs2_ref_totlen ( struct jffs2_sb_info c,
struct jffs2_eraseblock jeb,
struct jffs2_raw_node_ref ref 
)

Definition at line 742 of file nodelist.c.

void jffs2_add_fd_to_list ( struct jffs2_sb_info c,
struct jffs2_full_dirent new,
struct jffs2_full_dirent **  list 
)

Definition at line 26 of file nodelist.c.

int jffs2_add_full_dnode_to_inode ( struct jffs2_sb_info c,
struct jffs2_inode_info f,
struct jffs2_full_dnode fn 
)

Definition at line 363 of file nodelist.c.

void jffs2_add_ino_cache ( struct jffs2_sb_info c,
struct jffs2_inode_cache new 
)

Definition at line 436 of file nodelist.c.

void jffs2_del_ino_cache ( struct jffs2_sb_info c,
struct jffs2_inode_cache old 
)

Definition at line 457 of file nodelist.c.

void jffs2_free_ino_caches ( struct jffs2_sb_info c)

Definition at line 487 of file nodelist.c.

void jffs2_free_raw_node_refs ( struct jffs2_sb_info c)

Definition at line 504 of file nodelist.c.

struct jffs2_inode_cache* jffs2_get_ino_cache ( struct jffs2_sb_info c,
uint32_t  ino 
)
read

Definition at line 421 of file nodelist.c.

void jffs2_kill_fragtree ( struct rb_root root,
struct jffs2_sb_info c 
)

Definition at line 565 of file nodelist.c.

struct jffs2_raw_node_ref* jffs2_link_node_ref ( struct jffs2_sb_info c,
struct jffs2_eraseblock jeb,
uint32_t  ofs,
uint32_t  len,
struct jffs2_inode_cache ic 
)
read

Definition at line 609 of file nodelist.c.

struct jffs2_node_frag* jffs2_lookup_node_frag ( struct rb_root fragtree,
uint32_t  offset 
)
read

Definition at line 524 of file nodelist.c.

int jffs2_scan_dirty_space ( struct jffs2_sb_info c,
struct jffs2_eraseblock jeb,
uint32_t  size 
)

Definition at line 686 of file nodelist.c.

void jffs2_set_inocache_state ( struct jffs2_sb_info c,
struct jffs2_inode_cache ic,
int  state 
)

Definition at line 408 of file nodelist.c.

uint32_t jffs2_truncate_fragtree ( struct jffs2_sb_info c,
struct rb_root list,
uint32_t  size 
)

Definition at line 59 of file nodelist.c.