Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
xfs_ialloc.c File Reference
#include "xfs.h"
#include "xfs_fs.h"
#include "xfs_types.h"
#include "xfs_bit.h"
#include "xfs_log.h"
#include "xfs_inum.h"
#include "xfs_trans.h"
#include "xfs_sb.h"
#include "xfs_ag.h"
#include "xfs_mount.h"
#include "xfs_bmap_btree.h"
#include "xfs_alloc_btree.h"
#include "xfs_ialloc_btree.h"
#include "xfs_dinode.h"
#include "xfs_inode.h"
#include "xfs_btree.h"
#include "xfs_ialloc.h"
#include "xfs_alloc.h"
#include "xfs_rtalloc.h"
#include "xfs_error.h"
#include "xfs_bmap.h"

Go to the source code of this file.

Macros

#define xfs_check_agi_freecount(cur, agi)   0
 
#define xfs_check_agi_unlinked(agi)
 

Functions

int xfs_inobt_lookup (struct xfs_btree_cur *cur, xfs_agino_t ino, xfs_lookup_t dir, int *stat)
 
STATIC int xfs_inobt_update (struct xfs_btree_cur *cur, xfs_inobt_rec_incore_t *irec)
 
int xfs_inobt_get_rec (struct xfs_btree_cur *cur, xfs_inobt_rec_incore_t *irec, int *stat)
 
STATIC int xfs_ialloc_inode_init (struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, xfs_agblock_t length, unsigned int gen)
 
STATIC int xfs_ialloc_ag_alloc (xfs_trans_t *tp, xfs_buf_t *agbp, int *alloc)
 
STATIC xfs_agnumber_t xfs_ialloc_next_ag (xfs_mount_t *mp)
 
STATIC xfs_agnumber_t xfs_ialloc_ag_select (xfs_trans_t *tp, xfs_ino_t parent, umode_t mode, int okalloc)
 
STATIC int xfs_ialloc_next_rec (struct xfs_btree_cur *cur, xfs_inobt_rec_incore_t *rec, int *done, int left)
 
STATIC int xfs_ialloc_get_rec (struct xfs_btree_cur *cur, xfs_agino_t agino, xfs_inobt_rec_incore_t *rec, int *done, int left)
 
STATIC int xfs_dialloc_ag (struct xfs_trans *tp, struct xfs_buf *agbp, xfs_ino_t parent, xfs_ino_t *inop)
 
int xfs_dialloc (struct xfs_trans *tp, xfs_ino_t parent, umode_t mode, int okalloc, struct xfs_buf **IO_agbp, xfs_ino_t *inop)
 
int xfs_difree (xfs_trans_t *tp, xfs_ino_t inode, xfs_bmap_free_t *flist, int *delete, xfs_ino_t *first_ino)
 
STATIC int xfs_imap_lookup (struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agino_t agino, xfs_agblock_t agbno, xfs_agblock_t *chunk_agbno, xfs_agblock_t *offset_agbno, int flags)
 
int xfs_imap (xfs_mount_t *mp, xfs_trans_t *tp, xfs_ino_t ino, struct xfs_imap *imap, uint flags)
 
void xfs_ialloc_compute_maxlevels (xfs_mount_t *mp)
 
void xfs_ialloc_log_agi (xfs_trans_t *tp, xfs_buf_t *bp, int fields)
 
int xfs_read_agi (struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, struct xfs_buf **bpp)
 
int xfs_ialloc_read_agi (struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, struct xfs_buf **bpp)
 
int xfs_ialloc_pagi_init (xfs_mount_t *mp, xfs_trans_t *tp, xfs_agnumber_t agno)
 

Macro Definition Documentation

#define xfs_check_agi_freecount (   cur,
  agi 
)    0

Definition at line 147 of file xfs_ialloc.c.

#define xfs_check_agi_unlinked (   agi)

Definition at line 1472 of file xfs_ialloc.c.

Function Documentation

int xfs_dialloc ( struct xfs_trans *  tp,
xfs_ino_t  parent,
umode_t  mode,
int  okalloc,
struct xfs_buf **  IO_agbp,
xfs_ino_t *  inop 
)

Definition at line 893 of file xfs_ialloc.c.

STATIC int xfs_dialloc_ag ( struct xfs_trans *  tp,
struct xfs_buf agbp,
xfs_ino_t  parent,
xfs_ino_t *  inop 
)

Definition at line 613 of file xfs_ialloc.c.

int xfs_difree ( xfs_trans_t *  tp,
xfs_ino_t  inode,
xfs_bmap_free_t flist,
int delete,
xfs_ino_t *  first_ino 
)

Definition at line 1037 of file xfs_ialloc.c.

STATIC int xfs_ialloc_ag_alloc ( xfs_trans_t *  tp,
xfs_buf_t agbp,
int alloc 
)

Definition at line 235 of file xfs_ialloc.c.

STATIC xfs_agnumber_t xfs_ialloc_ag_select ( xfs_trans_t *  tp,
xfs_ino_t  parent,
umode_t  mode,
int  okalloc 
)

Definition at line 447 of file xfs_ialloc.c.

void xfs_ialloc_compute_maxlevels ( xfs_mount_t *  mp)

Definition at line 1400 of file xfs_ialloc.c.

STATIC int xfs_ialloc_get_rec ( struct xfs_btree_cur cur,
xfs_agino_t  agino,
xfs_inobt_rec_incore_t rec,
int done,
int  left 
)

Definition at line 582 of file xfs_ialloc.c.

STATIC int xfs_ialloc_inode_init ( struct xfs_mount *  mp,
struct xfs_trans *  tp,
xfs_agnumber_t  agno,
xfs_agblock_t  agbno,
xfs_agblock_t  length,
unsigned int  gen 
)

Definition at line 154 of file xfs_ialloc.c.

void xfs_ialloc_log_agi ( xfs_trans_t *  tp,
xfs_buf_t bp,
int  fields 
)

Definition at line 1423 of file xfs_ialloc.c.

STATIC xfs_agnumber_t xfs_ialloc_next_ag ( xfs_mount_t *  mp)

Definition at line 428 of file xfs_ialloc.c.

STATIC int xfs_ialloc_next_rec ( struct xfs_btree_cur cur,
xfs_inobt_rec_incore_t rec,
int done,
int  left 
)

Definition at line 554 of file xfs_ialloc.c.

int xfs_ialloc_pagi_init ( xfs_mount_t *  mp,
xfs_trans_t *  tp,
xfs_agnumber_t  agno 
)

Definition at line 1557 of file xfs_ialloc.c.

int xfs_ialloc_read_agi ( struct xfs_mount *  mp,
struct xfs_trans *  tp,
xfs_agnumber_t  agno,
struct xfs_buf **  bpp 
)

Definition at line 1521 of file xfs_ialloc.c.

int xfs_imap ( xfs_mount_t *  mp,
xfs_trans_t *  tp,
xfs_ino_t  ino,
struct xfs_imap imap,
uint  flags 
)

Definition at line 1265 of file xfs_ialloc.c.

STATIC int xfs_imap_lookup ( struct xfs_mount *  mp,
struct xfs_trans *  tp,
xfs_agnumber_t  agno,
xfs_agino_t  agino,
xfs_agblock_t  agbno,
xfs_agblock_t chunk_agbno,
xfs_agblock_t offset_agbno,
int  flags 
)

Definition at line 1202 of file xfs_ialloc.c.

int xfs_inobt_get_rec ( struct xfs_btree_cur cur,
xfs_inobt_rec_incore_t irec,
int stat 
)

Definition at line 92 of file xfs_ialloc.c.

int xfs_inobt_lookup ( struct xfs_btree_cur cur,
xfs_agino_t  ino,
xfs_lookup_t  dir,
int stat 
)

Definition at line 59 of file xfs_ialloc.c.

STATIC int xfs_inobt_update ( struct xfs_btree_cur cur,
xfs_inobt_rec_incore_t irec 
)

Definition at line 76 of file xfs_ialloc.c.

int xfs_read_agi ( struct xfs_mount *  mp,
struct xfs_trans *  tp,
xfs_agnumber_t  agno,
struct xfs_buf **  bpp 
)

Definition at line 1479 of file xfs_ialloc.c.