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

Go to the source code of this file.

Data Structures

struct  xfs_bmap_free_item
 
struct  xfs_bmap_free
 
struct  xfs_bmalloca
 

Macros

#define XFS_BMAP_MAX_NMAP   4
 
#define XFS_BMAPI_ENTIRE   0x001 /* return entire extent, not trimmed */
 
#define XFS_BMAPI_METADATA   0x002 /* mapping metadata not user data */
 
#define XFS_BMAPI_ATTRFORK   0x004 /* use attribute fork not data */
 
#define XFS_BMAPI_PREALLOC   0x008 /* preallocation op: unwritten space */
 
#define XFS_BMAPI_IGSTATE   0x010 /* Ignore state - */
 
#define XFS_BMAPI_CONTIG   0x020 /* must allocate only one extent */
 
#define XFS_BMAPI_CONVERT   0x040
 
#define XFS_BMAPI_STACK_SWITCH   0x080
 
#define XFS_BMAPI_FLAGS
 
#define DELAYSTARTBLOCK   ((xfs_fsblock_t)-1LL)
 
#define HOLESTARTBLOCK   ((xfs_fsblock_t)-2LL)
 
#define BMAP_LEFT_CONTIG   (1 << 0)
 
#define BMAP_RIGHT_CONTIG   (1 << 1)
 
#define BMAP_LEFT_FILLING   (1 << 2)
 
#define BMAP_RIGHT_FILLING   (1 << 3)
 
#define BMAP_LEFT_DELAY   (1 << 4)
 
#define BMAP_RIGHT_DELAY   (1 << 5)
 
#define BMAP_LEFT_VALID   (1 << 6)
 
#define BMAP_RIGHT_VALID   (1 << 7)
 
#define BMAP_ATTRFORK   (1 << 8)
 
#define XFS_BMAP_EXT_FLAGS
 
#define XFS_BMAP_TRACE_EXLIST(ip, c, w)
 

Typedefs

typedef struct xfs_bmap_free_item xfs_bmap_free_item_t
 
typedef struct xfs_bmap_free xfs_bmap_free_t
 
typedef struct xfs_bmalloca xfs_bmalloca_t
 

Functions

int xfs_bmap_add_attrfork (struct xfs_inode *ip, int size, int rsvd)
 
void xfs_bmap_add_free (xfs_fsblock_t bno, xfs_filblks_t len, struct xfs_bmap_free *flist, struct xfs_mount *mp)
 
void xfs_bmap_cancel (struct xfs_bmap_free *flist)
 
void xfs_bmap_compute_maxlevels (struct xfs_mount *mp, int whichfork)
 
int xfs_bmap_first_unused (struct xfs_trans *tp, struct xfs_inode *ip, xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork)
 
int xfs_bmap_last_before (struct xfs_trans *tp, struct xfs_inode *ip, xfs_fileoff_t *last_block, int whichfork)
 
int xfs_bmap_last_offset (struct xfs_trans *tp, struct xfs_inode *ip, xfs_fileoff_t *unused, int whichfork)
 
int xfs_bmap_one_block (struct xfs_inode *ip, int whichfork)
 
int xfs_bmap_read_extents (struct xfs_trans *tp, struct xfs_inode *ip, int whichfork)
 
int xfs_bmapi_read (struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, struct xfs_bmbt_irec *mval, int *nmap, int flags)
 
int xfs_bmapi_delay (struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, struct xfs_bmbt_irec *mval, int *nmap, int flags)
 
int xfs_bmapi_write (struct xfs_trans *tp, struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, int flags, xfs_fsblock_t *firstblock, xfs_extlen_t total, struct xfs_bmbt_irec *mval, int *nmap, struct xfs_bmap_free *flist)
 
int xfs_bunmapi (struct xfs_trans *tp, struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, int flags, xfs_extnum_t nexts, xfs_fsblock_t *firstblock, struct xfs_bmap_free *flist, int *done)
 
int xfs_check_nostate_extents (struct xfs_ifork *ifp, xfs_extnum_t idx, xfs_extnum_t num)
 
uint xfs_default_attroffset (struct xfs_inode *ip)
 

Variables

kmem_zone_txfs_bmap_free_item_zone
 

Macro Definition Documentation

#define BMAP_ATTRFORK   (1 << 8)

Definition at line 156 of file xfs_bmap.h.

#define BMAP_LEFT_CONTIG   (1 << 0)

Definition at line 148 of file xfs_bmap.h.

#define BMAP_LEFT_DELAY   (1 << 4)

Definition at line 152 of file xfs_bmap.h.

#define BMAP_LEFT_FILLING   (1 << 2)

Definition at line 150 of file xfs_bmap.h.

#define BMAP_LEFT_VALID   (1 << 6)

Definition at line 154 of file xfs_bmap.h.

#define BMAP_RIGHT_CONTIG   (1 << 1)

Definition at line 149 of file xfs_bmap.h.

#define BMAP_RIGHT_DELAY   (1 << 5)

Definition at line 153 of file xfs_bmap.h.

#define BMAP_RIGHT_FILLING   (1 << 3)

Definition at line 151 of file xfs_bmap.h.

#define BMAP_RIGHT_VALID   (1 << 7)

Definition at line 155 of file xfs_bmap.h.

#define DELAYSTARTBLOCK   ((xfs_fsblock_t)-1LL)

Definition at line 101 of file xfs_bmap.h.

#define HOLESTARTBLOCK   ((xfs_fsblock_t)-2LL)

Definition at line 102 of file xfs_bmap.h.

#define XFS_BMAP_EXT_FLAGS
Value:
{ BMAP_LEFT_CONTIG, "LC" }, \
{ BMAP_RIGHT_CONTIG, "RC" }, \
{ BMAP_LEFT_FILLING, "LF" }, \
{ BMAP_RIGHT_FILLING, "RF" }, \
{ BMAP_ATTRFORK, "ATTR" }

Definition at line 158 of file xfs_bmap.h.

#define XFS_BMAP_MAX_NMAP   4

Definition at line 62 of file xfs_bmap.h.

#define XFS_BMAP_TRACE_EXLIST (   ip,
  c,
  w 
)

Definition at line 171 of file xfs_bmap.h.

#define XFS_BMAPI_ATTRFORK   0x004 /* use attribute fork not data */

Definition at line 69 of file xfs_bmap.h.

#define XFS_BMAPI_CONTIG   0x020 /* must allocate only one extent */

Definition at line 73 of file xfs_bmap.h.

#define XFS_BMAPI_CONVERT   0x040

Definition at line 79 of file xfs_bmap.h.

#define XFS_BMAPI_ENTIRE   0x001 /* return entire extent, not trimmed */

Definition at line 67 of file xfs_bmap.h.

#define XFS_BMAPI_FLAGS
Value:
{ XFS_BMAPI_ENTIRE, "ENTIRE" }, \
{ XFS_BMAPI_METADATA, "METADATA" }, \
{ XFS_BMAPI_ATTRFORK, "ATTRFORK" }, \
{ XFS_BMAPI_PREALLOC, "PREALLOC" }, \
{ XFS_BMAPI_IGSTATE, "IGSTATE" }, \
{ XFS_BMAPI_CONTIG, "CONTIG" }, \
{ XFS_BMAPI_CONVERT, "CONVERT" }, \
{ XFS_BMAPI_STACK_SWITCH, "STACK_SWITCH" }

Definition at line 82 of file xfs_bmap.h.

#define XFS_BMAPI_IGSTATE   0x010 /* Ignore state - */

Definition at line 71 of file xfs_bmap.h.

#define XFS_BMAPI_METADATA   0x002 /* mapping metadata not user data */

Definition at line 68 of file xfs_bmap.h.

#define XFS_BMAPI_PREALLOC   0x008 /* preallocation op: unwritten space */

Definition at line 70 of file xfs_bmap.h.

#define XFS_BMAPI_STACK_SWITCH   0x080

Definition at line 80 of file xfs_bmap.h.

Typedef Documentation

Function Documentation

int xfs_bmap_add_attrfork ( struct xfs_inode *  ip,
int  size,
int  rsvd 
)
void xfs_bmap_add_free ( xfs_fsblock_t  bno,
xfs_filblks_t  len,
struct xfs_bmap_free flist,
struct xfs_mount *  mp 
)
void xfs_bmap_cancel ( struct xfs_bmap_free flist)

Definition at line 3748 of file xfs_bmap.c.

void xfs_bmap_compute_maxlevels ( struct xfs_mount *  mp,
int  whichfork 
)
int xfs_bmap_first_unused ( struct xfs_trans *  tp,
struct xfs_inode *  ip,
xfs_extlen_t  len,
xfs_fileoff_t unused,
int  whichfork 
)
int xfs_bmap_last_before ( struct xfs_trans *  tp,
struct xfs_inode *  ip,
xfs_fileoff_t last_block,
int  whichfork 
)
int xfs_bmap_last_offset ( struct xfs_trans *  tp,
struct xfs_inode *  ip,
xfs_fileoff_t unused,
int  whichfork 
)

Definition at line 3959 of file xfs_bmap.c.

int xfs_bmap_one_block ( struct xfs_inode *  ip,
int  whichfork 
)
int xfs_bmap_read_extents ( struct xfs_trans *  tp,
struct xfs_inode *  ip,
int  whichfork 
)
int xfs_bmapi_delay ( struct xfs_inode *  ip,
xfs_fileoff_t  bno,
xfs_filblks_t  len,
struct xfs_bmbt_irec mval,
int nmap,
int  flags 
)

Definition at line 4541 of file xfs_bmap.c.

int xfs_bmapi_read ( struct xfs_inode *  ip,
xfs_fileoff_t  bno,
xfs_filblks_t  len,
struct xfs_bmbt_irec mval,
int nmap,
int  flags 
)

Definition at line 4345 of file xfs_bmap.c.

int xfs_bmapi_write ( struct xfs_trans *  tp,
struct xfs_inode *  ip,
xfs_fileoff_t  bno,
xfs_filblks_t  len,
int  flags,
xfs_fsblock_t firstblock,
xfs_extlen_t  total,
struct xfs_bmbt_irec mval,
int nmap,
struct xfs_bmap_free flist 
)

Definition at line 4854 of file xfs_bmap.c.

int xfs_bunmapi ( struct xfs_trans *  tp,
struct xfs_inode *  ip,
xfs_fileoff_t  bno,
xfs_filblks_t  len,
int  flags,
xfs_extnum_t  nexts,
xfs_fsblock_t firstblock,
struct xfs_bmap_free flist,
int done 
)
int xfs_check_nostate_extents ( struct xfs_ifork ifp,
xfs_extnum_t  idx,
xfs_extnum_t  num 
)

Definition at line 451 of file xfs_bmap_btree.c.

uint xfs_default_attroffset ( struct xfs_inode *  ip)

Definition at line 3170 of file xfs_bmap.c.

Variable Documentation

kmem_zone_t* xfs_bmap_free_item_zone

Definition at line 52 of file xfs_bmap.c.