Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
xfs_attr_leaf.h File Reference

Go to the source code of this file.

Data Structures

struct  xfs_attr_leaf_map
 
struct  xfs_attr_leaf_hdr
 
struct  xfs_attr_leaf_entry
 
struct  xfs_attr_leaf_name_local
 
struct  xfs_attr_leaf_name_remote
 
struct  xfs_attr_leafblock
 
struct  xfs_attr_inactive_list
 

Macros

#define XFS_ATTR_LEAF_MAPSIZE   3 /* how many freespace slots */
 
#define XFS_ATTR_LOCAL_BIT   0 /* attr is stored locally */
 
#define XFS_ATTR_ROOT_BIT   1 /* limit access to trusted attrs */
 
#define XFS_ATTR_SECURE_BIT   2 /* limit access to secure attrs */
 
#define XFS_ATTR_INCOMPLETE_BIT   7 /* attr in middle of create/delete */
 
#define XFS_ATTR_LOCAL   (1 << XFS_ATTR_LOCAL_BIT)
 
#define XFS_ATTR_ROOT   (1 << XFS_ATTR_ROOT_BIT)
 
#define XFS_ATTR_SECURE   (1 << XFS_ATTR_SECURE_BIT)
 
#define XFS_ATTR_INCOMPLETE   (1 << XFS_ATTR_INCOMPLETE_BIT)
 
#define XFS_ATTR_NSP_ARGS_MASK   (ATTR_ROOT | ATTR_SECURE)
 
#define XFS_ATTR_NSP_ONDISK_MASK   (XFS_ATTR_ROOT | XFS_ATTR_SECURE)
 
#define XFS_ATTR_NSP_ONDISK(flags)   ((flags) & XFS_ATTR_NSP_ONDISK_MASK)
 
#define XFS_ATTR_NSP_ARGS(flags)   ((flags) & XFS_ATTR_NSP_ARGS_MASK)
 
#define XFS_ATTR_NSP_ARGS_TO_ONDISK(x)
 
#define XFS_ATTR_NSP_ONDISK_TO_ARGS(x)
 
#define XFS_ATTR_LEAF_NAME_ALIGN   ((uint)sizeof(xfs_dablk_t))
 

Typedefs

typedef struct xfs_attr_leaf_map xfs_attr_leaf_map_t
 
typedef struct xfs_attr_leaf_hdr xfs_attr_leaf_hdr_t
 
typedef struct xfs_attr_leaf_entry xfs_attr_leaf_entry_t
 
typedef struct
xfs_attr_leaf_name_local 
xfs_attr_leaf_name_local_t
 
typedef struct
xfs_attr_leaf_name_remote 
xfs_attr_leaf_name_remote_t
 
typedef struct xfs_attr_leafblock xfs_attr_leafblock_t
 
typedef struct
xfs_attr_inactive_list 
xfs_attr_inactive_list_t
 

Functions

void xfs_attr_shortform_create (struct xfs_da_args *args)
 
void xfs_attr_shortform_add (struct xfs_da_args *args, int forkoff)
 
int xfs_attr_shortform_lookup (struct xfs_da_args *args)
 
int xfs_attr_shortform_getvalue (struct xfs_da_args *args)
 
int xfs_attr_shortform_to_leaf (struct xfs_da_args *args)
 
int xfs_attr_shortform_remove (struct xfs_da_args *args)
 
int xfs_attr_shortform_list (struct xfs_attr_list_context *context)
 
int xfs_attr_shortform_allfit (struct xfs_buf *bp, struct xfs_inode *dp)
 
int xfs_attr_shortform_bytesfit (xfs_inode_t *dp, int bytes)
 
int xfs_attr_leaf_to_node (struct xfs_da_args *args)
 
int xfs_attr_leaf_to_shortform (struct xfs_buf *bp, struct xfs_da_args *args, int forkoff)
 
int xfs_attr_leaf_clearflag (struct xfs_da_args *args)
 
int xfs_attr_leaf_setflag (struct xfs_da_args *args)
 
int xfs_attr_leaf_flipflags (xfs_da_args_t *args)
 
int xfs_attr_leaf_split (struct xfs_da_state *state, struct xfs_da_state_blk *oldblk, struct xfs_da_state_blk *newblk)
 
int xfs_attr_leaf_lookup_int (struct xfs_buf *leaf, struct xfs_da_args *args)
 
int xfs_attr_leaf_getvalue (struct xfs_buf *bp, struct xfs_da_args *args)
 
int xfs_attr_leaf_add (struct xfs_buf *leaf_buffer, struct xfs_da_args *args)
 
int xfs_attr_leaf_remove (struct xfs_buf *leaf_buffer, struct xfs_da_args *args)
 
int xfs_attr_leaf_list_int (struct xfs_buf *bp, struct xfs_attr_list_context *context)
 
int xfs_attr_leaf_toosmall (struct xfs_da_state *state, int *retval)
 
void xfs_attr_leaf_unbalance (struct xfs_da_state *state, struct xfs_da_state_blk *drop_blk, struct xfs_da_state_blk *save_blk)
 
int xfs_attr_root_inactive (struct xfs_trans **trans, struct xfs_inode *dp)
 
xfs_dahash_t xfs_attr_leaf_lasthash (struct xfs_buf *bp, int *count)
 
int xfs_attr_leaf_order (struct xfs_buf *leaf1_bp, struct xfs_buf *leaf2_bp)
 
int xfs_attr_leaf_newentsize (int namelen, int valuelen, int blocksize, int *local)
 

Macro Definition Documentation

#define XFS_ATTR_INCOMPLETE   (1 << XFS_ATTR_INCOMPLETE_BIT)

Definition at line 129 of file xfs_attr_leaf.h.

#define XFS_ATTR_INCOMPLETE_BIT   7 /* attr in middle of create/delete */

Definition at line 125 of file xfs_attr_leaf.h.

#define XFS_ATTR_LEAF_MAPSIZE   3 /* how many freespace slots */

Definition at line 72 of file xfs_attr_leaf.h.

#define XFS_ATTR_LEAF_NAME_ALIGN   ((uint)sizeof(xfs_dablk_t))

Definition at line 148 of file xfs_attr_leaf.h.

#define XFS_ATTR_LOCAL   (1 << XFS_ATTR_LOCAL_BIT)

Definition at line 126 of file xfs_attr_leaf.h.

#define XFS_ATTR_LOCAL_BIT   0 /* attr is stored locally */

Definition at line 122 of file xfs_attr_leaf.h.

#define XFS_ATTR_NSP_ARGS (   flags)    ((flags) & XFS_ATTR_NSP_ARGS_MASK)

Definition at line 138 of file xfs_attr_leaf.h.

#define XFS_ATTR_NSP_ARGS_MASK   (ATTR_ROOT | ATTR_SECURE)

Definition at line 135 of file xfs_attr_leaf.h.

#define XFS_ATTR_NSP_ARGS_TO_ONDISK (   x)
Value:
(((x) & ATTR_ROOT ? XFS_ATTR_ROOT : 0) |\

Definition at line 139 of file xfs_attr_leaf.h.

#define XFS_ATTR_NSP_ONDISK (   flags)    ((flags) & XFS_ATTR_NSP_ONDISK_MASK)

Definition at line 137 of file xfs_attr_leaf.h.

#define XFS_ATTR_NSP_ONDISK_MASK   (XFS_ATTR_ROOT | XFS_ATTR_SECURE)

Definition at line 136 of file xfs_attr_leaf.h.

#define XFS_ATTR_NSP_ONDISK_TO_ARGS (   x)
Value:
(((x) & XFS_ATTR_ROOT ? ATTR_ROOT : 0) |\

Definition at line 141 of file xfs_attr_leaf.h.

#define XFS_ATTR_ROOT   (1 << XFS_ATTR_ROOT_BIT)

Definition at line 127 of file xfs_attr_leaf.h.

#define XFS_ATTR_ROOT_BIT   1 /* limit access to trusted attrs */

Definition at line 123 of file xfs_attr_leaf.h.

#define XFS_ATTR_SECURE   (1 << XFS_ATTR_SECURE_BIT)

Definition at line 128 of file xfs_attr_leaf.h.

#define XFS_ATTR_SECURE_BIT   2 /* limit access to secure attrs */

Definition at line 124 of file xfs_attr_leaf.h.

Typedef Documentation

Function Documentation

int xfs_attr_leaf_add ( struct xfs_buf leaf_buffer,
struct xfs_da_args args 
)

Definition at line 1018 of file xfs_attr_leaf.c.

int xfs_attr_leaf_clearflag ( struct xfs_da_args args)

Definition at line 2497 of file xfs_attr_leaf.c.

int xfs_attr_leaf_flipflags ( xfs_da_args_t args)

Definition at line 2618 of file xfs_attr_leaf.c.

int xfs_attr_leaf_getvalue ( struct xfs_buf bp,
struct xfs_da_args args 
)

Definition at line 2072 of file xfs_attr_leaf.c.

xfs_dahash_t xfs_attr_leaf_lasthash ( struct xfs_buf bp,
int count 
)

Definition at line 2307 of file xfs_attr_leaf.c.

int xfs_attr_leaf_list_int ( struct xfs_buf bp,
struct xfs_attr_list_context context 
)

Definition at line 2374 of file xfs_attr_leaf.c.

int xfs_attr_leaf_lookup_int ( struct xfs_buf leaf,
struct xfs_da_args args 
)

Definition at line 1963 of file xfs_attr_leaf.c.

int xfs_attr_leaf_newentsize ( int  namelen,
int  valuelen,
int  blocksize,
int local 
)

Definition at line 2352 of file xfs_attr_leaf.c.

int xfs_attr_leaf_order ( struct xfs_buf leaf1_bp,
struct xfs_buf leaf2_bp 
)

Definition at line 2280 of file xfs_attr_leaf.c.

int xfs_attr_leaf_remove ( struct xfs_buf leaf_buffer,
struct xfs_da_args args 
)

Definition at line 1693 of file xfs_attr_leaf.c.

int xfs_attr_leaf_setflag ( struct xfs_da_args args)

Definition at line 2566 of file xfs_attr_leaf.c.

int xfs_attr_leaf_split ( struct xfs_da_state state,
struct xfs_da_state_blk oldblk,
struct xfs_da_state_blk newblk 
)

Definition at line 961 of file xfs_attr_leaf.c.

int xfs_attr_leaf_to_node ( struct xfs_da_args args)

Definition at line 856 of file xfs_attr_leaf.c.

int xfs_attr_leaf_to_shortform ( struct xfs_buf bp,
struct xfs_da_args args,
int  forkoff 
)

Definition at line 777 of file xfs_attr_leaf.c.

int xfs_attr_leaf_toosmall ( struct xfs_da_state state,
int retval 
)

Definition at line 1571 of file xfs_attr_leaf.c.

void xfs_attr_leaf_unbalance ( struct xfs_da_state state,
struct xfs_da_state_blk drop_blk,
struct xfs_da_state_blk save_blk 
)

Definition at line 1853 of file xfs_attr_leaf.c.

int xfs_attr_root_inactive ( struct xfs_trans **  trans,
struct xfs_inode *  dp 
)
void xfs_attr_shortform_add ( struct xfs_da_args args,
int  forkoff 
)

Definition at line 263 of file xfs_attr_leaf.c.

int xfs_attr_shortform_allfit ( struct xfs_buf bp,
struct xfs_inode *  dp 
)

Definition at line 738 of file xfs_attr_leaf.c.

int xfs_attr_shortform_bytesfit ( xfs_inode_t *  dp,
int  bytes 
)

Definition at line 120 of file xfs_attr_leaf.c.

void xfs_attr_shortform_create ( struct xfs_da_args args)

Definition at line 231 of file xfs_attr_leaf.c.

int xfs_attr_shortform_getvalue ( struct xfs_da_args args)

Definition at line 437 of file xfs_attr_leaf.c.

int xfs_attr_shortform_list ( struct xfs_attr_list_context context)

Definition at line 586 of file xfs_attr_leaf.c.

int xfs_attr_shortform_lookup ( struct xfs_da_args args)

Definition at line 406 of file xfs_attr_leaf.c.

int xfs_attr_shortform_remove ( struct xfs_da_args args)

Definition at line 335 of file xfs_attr_leaf.c.

int xfs_attr_shortform_to_leaf ( struct xfs_da_args args)

Definition at line 474 of file xfs_attr_leaf.c.