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

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define JFFS2_XATTR_IS_CORRUPTED   1
 
#define XREF_TMPHASH_SIZE   (128)
 

Functions

void jffs2_xattr_delete_inode (struct jffs2_sb_info *c, struct jffs2_inode_cache *ic)
 
void jffs2_xattr_free_inode (struct jffs2_sb_info *c, struct jffs2_inode_cache *ic)
 
void jffs2_xattr_do_crccheck_inode (struct jffs2_sb_info *c, struct jffs2_inode_cache *ic)
 
void jffs2_init_xattr_subsystem (struct jffs2_sb_info *c)
 
void jffs2_clear_xattr_subsystem (struct jffs2_sb_info *c)
 
void jffs2_build_xattr_subsystem (struct jffs2_sb_info *c)
 
struct jffs2_xattr_datumjffs2_setup_xattr_datum (struct jffs2_sb_info *c, uint32_t xid, uint32_t version)
 
ssize_t jffs2_listxattr (struct dentry *dentry, char *buffer, size_t size)
 
int do_jffs2_getxattr (struct inode *inode, int xprefix, const char *xname, char *buffer, size_t size)
 
int do_jffs2_setxattr (struct inode *inode, int xprefix, const char *xname, const char *buffer, size_t size, int flags)
 
int jffs2_garbage_collect_xattr_datum (struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd, struct jffs2_raw_node_ref *raw)
 
int jffs2_garbage_collect_xattr_ref (struct jffs2_sb_info *c, struct jffs2_xattr_ref *ref, struct jffs2_raw_node_ref *raw)
 
int jffs2_verify_xattr (struct jffs2_sb_info *c)
 
void jffs2_release_xattr_datum (struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd)
 
void jffs2_release_xattr_ref (struct jffs2_sb_info *c, struct jffs2_xattr_ref *ref)
 

Variables

struct xattr_handlerjffs2_xattr_handlers []
 

Macro Definition Documentation

#define JFFS2_XATTR_IS_CORRUPTED   1

Definition at line 14 of file xattr.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 12 of file xattr.c.

#define XREF_TMPHASH_SIZE   (128)

Definition at line 774 of file xattr.c.

Function Documentation

int do_jffs2_getxattr ( struct inode inode,
int  xprefix,
const char xname,
char buffer,
size_t  size 
)

Definition at line 1024 of file xattr.c.

int do_jffs2_setxattr ( struct inode inode,
int  xprefix,
const char xname,
const char buffer,
size_t  size,
int  flags 
)

Definition at line 1086 of file xattr.c.

void jffs2_build_xattr_subsystem ( struct jffs2_sb_info c)

Definition at line 775 of file xattr.c.

void jffs2_clear_xattr_subsystem ( struct jffs2_sb_info c)

Definition at line 739 of file xattr.c.

int jffs2_garbage_collect_xattr_datum ( struct jffs2_sb_info c,
struct jffs2_xattr_datum xd,
struct jffs2_raw_node_ref raw 
)

Definition at line 1212 of file xattr.c.

int jffs2_garbage_collect_xattr_ref ( struct jffs2_sb_info c,
struct jffs2_xattr_ref ref,
struct jffs2_raw_node_ref raw 
)

Definition at line 1248 of file xattr.c.

void jffs2_init_xattr_subsystem ( struct jffs2_sb_info c)

Definition at line 706 of file xattr.c.

ssize_t jffs2_listxattr ( struct dentry dentry,
char buffer,
size_t  size 
)

Definition at line 961 of file xattr.c.

void jffs2_release_xattr_datum ( struct jffs2_sb_info c,
struct jffs2_xattr_datum xd 
)

Definition at line 1316 of file xattr.c.

void jffs2_release_xattr_ref ( struct jffs2_sb_info c,
struct jffs2_xattr_ref ref 
)

Definition at line 1326 of file xattr.c.

struct jffs2_xattr_datum* jffs2_setup_xattr_datum ( struct jffs2_sb_info c,
uint32_t  xid,
uint32_t  version 
)
read

Definition at line 889 of file xattr.c.

int jffs2_verify_xattr ( struct jffs2_sb_info c)

Definition at line 1283 of file xattr.c.

void jffs2_xattr_delete_inode ( struct jffs2_sb_info c,
struct jffs2_inode_cache ic 
)

Definition at line 595 of file xattr.c.

void jffs2_xattr_do_crccheck_inode ( struct jffs2_sb_info c,
struct jffs2_inode_cache ic 
)

Definition at line 689 of file xattr.c.

void jffs2_xattr_free_inode ( struct jffs2_sb_info c,
struct jffs2_inode_cache ic 
)

Definition at line 613 of file xattr.c.

Variable Documentation

struct xattr_handler* jffs2_xattr_handlers[]
Initial value:

Definition at line 918 of file xattr.c.