Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
xfs_alloc_btree.c File Reference
#include "xfs.h"
#include "xfs_fs.h"
#include "xfs_types.h"
#include "xfs_log.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_alloc.h"
#include "xfs_extent_busy.h"
#include "xfs_error.h"
#include "xfs_trace.h"

Go to the source code of this file.

Functions

STATIC struct xfs_btree_curxfs_allocbt_dup_cursor (struct xfs_btree_cur *cur)
 
STATIC void xfs_allocbt_set_root (struct xfs_btree_cur *cur, union xfs_btree_ptr *ptr, int inc)
 
STATIC int xfs_allocbt_alloc_block (struct xfs_btree_cur *cur, union xfs_btree_ptr *start, union xfs_btree_ptr *new, int length, int *stat)
 
STATIC int xfs_allocbt_free_block (struct xfs_btree_cur *cur, struct xfs_buf *bp)
 
STATIC void xfs_allocbt_update_lastrec (struct xfs_btree_cur *cur, struct xfs_btree_block *block, union xfs_btree_rec *rec, int ptr, int reason)
 
STATIC int xfs_allocbt_get_minrecs (struct xfs_btree_cur *cur, int level)
 
STATIC int xfs_allocbt_get_maxrecs (struct xfs_btree_cur *cur, int level)
 
STATIC void xfs_allocbt_init_key_from_rec (union xfs_btree_key *key, union xfs_btree_rec *rec)
 
STATIC void xfs_allocbt_init_rec_from_key (union xfs_btree_key *key, union xfs_btree_rec *rec)
 
STATIC void xfs_allocbt_init_rec_from_cur (struct xfs_btree_cur *cur, union xfs_btree_rec *rec)
 
STATIC void xfs_allocbt_init_ptr_from_cur (struct xfs_btree_cur *cur, union xfs_btree_ptr *ptr)
 
STATIC __int64_t xfs_allocbt_key_diff (struct xfs_btree_cur *cur, union xfs_btree_key *key)
 
struct xfs_btree_curxfs_allocbt_init_cursor (struct xfs_mount *mp, struct xfs_trans *tp, struct xfs_buf *agbp, xfs_agnumber_t agno, xfs_btnum_t btnum)
 
int xfs_allocbt_maxrecs (struct xfs_mount *mp, int blocklen, int leaf)
 

Function Documentation

STATIC int xfs_allocbt_alloc_block ( struct xfs_btree_cur cur,
union xfs_btree_ptr start,
union xfs_btree_ptr new,
int  length,
int stat 
)

Definition at line 70 of file xfs_alloc_btree.c.

STATIC struct xfs_btree_cur* xfs_allocbt_dup_cursor ( struct xfs_btree_cur cur)
read

Definition at line 39 of file xfs_alloc_btree.c.

STATIC int xfs_allocbt_free_block ( struct xfs_btree_cur cur,
struct xfs_buf bp 
)

Definition at line 107 of file xfs_alloc_btree.c.

STATIC int xfs_allocbt_get_maxrecs ( struct xfs_btree_cur cur,
int  level 
)

Definition at line 201 of file xfs_alloc_btree.c.

STATIC int xfs_allocbt_get_minrecs ( struct xfs_btree_cur cur,
int  level 
)

Definition at line 193 of file xfs_alloc_btree.c.

struct xfs_btree_cur* xfs_allocbt_init_cursor ( struct xfs_mount *  mp,
struct xfs_trans *  tp,
struct xfs_buf agbp,
xfs_agnumber_t  agno,
xfs_btnum_t  btnum 
)
read

Definition at line 340 of file xfs_alloc_btree.c.

STATIC void xfs_allocbt_init_key_from_rec ( union xfs_btree_key key,
union xfs_btree_rec rec 
)

Definition at line 209 of file xfs_alloc_btree.c.

STATIC void xfs_allocbt_init_ptr_from_cur ( struct xfs_btree_cur cur,
union xfs_btree_ptr ptr 
)

Definition at line 242 of file xfs_alloc_btree.c.

STATIC void xfs_allocbt_init_rec_from_cur ( struct xfs_btree_cur cur,
union xfs_btree_rec rec 
)

Definition at line 231 of file xfs_alloc_btree.c.

STATIC void xfs_allocbt_init_rec_from_key ( union xfs_btree_key key,
union xfs_btree_rec rec 
)

Definition at line 220 of file xfs_alloc_btree.c.

STATIC __int64_t xfs_allocbt_key_diff ( struct xfs_btree_cur cur,
union xfs_btree_key key 
)

Definition at line 255 of file xfs_alloc_btree.c.

int xfs_allocbt_maxrecs ( struct xfs_mount *  mp,
int  blocklen,
int  leaf 
)

Definition at line 377 of file xfs_alloc_btree.c.

STATIC void xfs_allocbt_set_root ( struct xfs_btree_cur cur,
union xfs_btree_ptr ptr,
int  inc 
)

Definition at line 48 of file xfs_alloc_btree.c.

STATIC void xfs_allocbt_update_lastrec ( struct xfs_btree_cur cur,
struct xfs_btree_block block,
union xfs_btree_rec rec,
int  ptr,
int  reason 
)

Definition at line 133 of file xfs_alloc_btree.c.