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

Go to the source code of this file.

Data Structures

struct  xfs_alloc_rec
 
struct  xfs_alloc_rec_incore
 

Macros

#define XFS_ABTB_MAGIC   0x41425442 /* 'ABTB' for bno tree */
 
#define XFS_ABTC_MAGIC   0x41425443 /* 'ABTC' for cnt tree */
 
#define XFS_BNO_BLOCK(mp)   ((xfs_agblock_t)(XFS_AGFL_BLOCK(mp) + 1))
 
#define XFS_CNT_BLOCK(mp)   ((xfs_agblock_t)(XFS_BNO_BLOCK(mp) + 1))
 
#define XFS_ALLOC_BLOCK_LEN(mp)   XFS_BTREE_SBLOCK_LEN
 
#define XFS_ALLOC_REC_ADDR(mp, block, index)
 
#define XFS_ALLOC_KEY_ADDR(mp, block, index)
 
#define XFS_ALLOC_PTR_ADDR(mp, block, index, maxrecs)
 

Typedefs

typedef struct xfs_alloc_rec xfs_alloc_rec_t
 
typedef struct xfs_alloc_rec xfs_alloc_key_t
 
typedef struct xfs_alloc_rec_incore xfs_alloc_rec_incore_t
 
typedef __be32 xfs_alloc_ptr_t
 

Functions

struct xfs_btree_curxfs_allocbt_init_cursor (struct xfs_mount *, struct xfs_trans *, struct xfs_buf *, xfs_agnumber_t, xfs_btnum_t)
 
int xfs_allocbt_maxrecs (struct xfs_mount *, int, int)
 

Macro Definition Documentation

#define XFS_ABTB_MAGIC   0x41425442 /* 'ABTB' for bno tree */

Definition at line 34 of file xfs_alloc_btree.h.

#define XFS_ABTC_MAGIC   0x41425443 /* 'ABTC' for cnt tree */

Definition at line 35 of file xfs_alloc_btree.h.

#define XFS_ALLOC_BLOCK_LEN (   mp)    XFS_BTREE_SBLOCK_LEN

Definition at line 65 of file xfs_alloc_btree.h.

#define XFS_ALLOC_KEY_ADDR (   mp,
  block,
  index 
)
Value:
((char *)(block) + \
((index) - 1) * sizeof(xfs_alloc_key_t)))

Definition at line 78 of file xfs_alloc_btree.h.

#define XFS_ALLOC_PTR_ADDR (   mp,
  block,
  index,
  maxrecs 
)
Value:
((char *)(block) + \
(maxrecs) * sizeof(xfs_alloc_key_t) + \
((index) - 1) * sizeof(xfs_alloc_ptr_t)))

Definition at line 84 of file xfs_alloc_btree.h.

#define XFS_ALLOC_REC_ADDR (   mp,
  block,
  index 
)
Value:
((char *)(block) + \
(((index) - 1) * sizeof(xfs_alloc_rec_t))))

Definition at line 72 of file xfs_alloc_btree.h.

#define XFS_BNO_BLOCK (   mp)    ((xfs_agblock_t)(XFS_AGFL_BLOCK(mp) + 1))

Definition at line 57 of file xfs_alloc_btree.h.

#define XFS_CNT_BLOCK (   mp)    ((xfs_agblock_t)(XFS_BNO_BLOCK(mp) + 1))

Definition at line 58 of file xfs_alloc_btree.h.

Typedef Documentation

Definition at line 51 of file xfs_alloc_btree.h.

Function Documentation

struct xfs_btree_cur* xfs_allocbt_init_cursor ( struct xfs_mount *  ,
struct xfs_trans *  ,
struct xfs_buf ,
xfs_agnumber_t  ,
xfs_btnum_t   
)
read

Definition at line 340 of file xfs_alloc_btree.c.

int xfs_allocbt_maxrecs ( struct xfs_mount *  ,
int  ,
int   
)

Definition at line 377 of file xfs_alloc_btree.c.