Linux Kernel
3.7.1
|
#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_dir2.h"
#include "xfs_da_btree.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_mount.h"
#include "xfs_itable.h"
#include "xfs_inode_item.h"
#include "xfs_extfree_item.h"
#include "xfs_alloc.h"
#include "xfs_bmap.h"
#include "xfs_rtalloc.h"
#include "xfs_error.h"
#include "xfs_attr_leaf.h"
#include "xfs_quota.h"
#include "xfs_trans_space.h"
#include "xfs_buf_item.h"
#include "xfs_filestream.h"
#include "xfs_vnodeops.h"
#include "xfs_trace.h"
Go to the source code of this file.
Macros | |
#define | xfs_bmap_check_leaf_extents(cur, ip, whichfork) do { } while (0) |
#define | xfs_bmap_validate_ret(bno, len, flags, mval, onmap, nmap) |
#define | LEFT r[0] |
#define | RIGHT r[1] |
#define | PREV r[2] |
#define | LEFT r[0] |
#define | RIGHT r[1] |
#define | PREV r[2] |
#define | XFS_ALLOC_GAP_UNITS 4 |
#define | ISVALID(x, y) |
Variables | |
kmem_zone_t * | xfs_bmap_free_item_zone |
#define LEFT r[0] |
#define LEFT r[0] |
#define PREV r[2] |
#define PREV r[2] |
#define RIGHT r[1] |
#define RIGHT r[1] |
#define XFS_ALLOC_GAP_UNITS 4 |
Definition at line 2017 of file xfs_bmap.c.
Definition at line 65 of file xfs_bmap.c.
Definition at line 192 of file xfs_bmap.c.
STATIC int __xfs_bmapi_allocate | ( | struct xfs_bmalloca * | bma | ) |
Definition at line 4622 of file xfs_bmap.c.
Definition at line 3430 of file xfs_bmap.c.
STATIC int xfs_bmap_add_attrfork_btree | ( | xfs_trans_t * | tp, |
xfs_inode_t * | ip, | ||
xfs_fsblock_t * | firstblock, | ||
xfs_bmap_free_t * | flist, | ||
int * | flags | ||
) |
Definition at line 293 of file xfs_bmap.c.
STATIC int xfs_bmap_add_attrfork_extents | ( | xfs_trans_t * | tp, |
xfs_inode_t * | ip, | ||
xfs_fsblock_t * | firstblock, | ||
xfs_bmap_free_t * | flist, | ||
int * | flags | ||
) |
Definition at line 336 of file xfs_bmap.c.
STATIC int xfs_bmap_add_attrfork_local | ( | xfs_trans_t * | tp, |
xfs_inode_t * | ip, | ||
xfs_fsblock_t * | firstblock, | ||
xfs_bmap_free_t * | flist, | ||
int * | flags | ||
) |
Definition at line 363 of file xfs_bmap.c.
STATIC int xfs_bmap_add_extent_delay_real | ( | struct xfs_bmalloca * | bma | ) |
Definition at line 396 of file xfs_bmap.c.
STATIC void xfs_bmap_add_extent_hole_delay | ( | xfs_inode_t * | ip, |
xfs_extnum_t * | idx, | ||
xfs_bmbt_irec_t * | new | ||
) |
Definition at line 1472 of file xfs_bmap.c.
STATIC int xfs_bmap_add_extent_hole_real | ( | struct xfs_bmalloca * | bma, |
int | whichfork | ||
) |
Definition at line 1616 of file xfs_bmap.c.
STATIC int xfs_bmap_add_extent_unwritten_real | ( | struct xfs_trans * | tp, |
xfs_inode_t * | ip, | ||
xfs_extnum_t * | idx, | ||
xfs_btree_cur_t ** | curp, | ||
xfs_bmbt_irec_t * | new, | ||
xfs_fsblock_t * | first, | ||
xfs_bmap_free_t * | flist, | ||
int * | logflagsp | ||
) |
Definition at line 947 of file xfs_bmap.c.
void xfs_bmap_add_free | ( | xfs_fsblock_t | bno, |
xfs_filblks_t | len, | ||
xfs_bmap_free_t * | flist, | ||
xfs_mount_t * | mp | ||
) |
Definition at line 3566 of file xfs_bmap.c.
STATIC void xfs_bmap_adjacent | ( | xfs_bmalloca_t * | ap | ) |
Definition at line 2020 of file xfs_bmap.c.
STATIC int xfs_bmap_alloc | ( | xfs_bmalloca_t * | ap | ) |
Definition at line 2618 of file xfs_bmap.c.
STATIC int xfs_bmap_btalloc | ( | xfs_bmalloca_t * | ap | ) |
Definition at line 2386 of file xfs_bmap.c.
STATIC int xfs_bmap_btalloc_nullfb | ( | struct xfs_bmalloca * | ap, |
struct xfs_alloc_arg * | args, | ||
xfs_extlen_t * | blen | ||
) |
Definition at line 2271 of file xfs_bmap.c.
STATIC int xfs_bmap_btree_to_extents | ( | xfs_trans_t * | tp, |
xfs_inode_t * | ip, | ||
xfs_btree_cur_t * | cur, | ||
int * | logflagsp, | ||
int | whichfork | ||
) |
Definition at line 2633 of file xfs_bmap.c.
void xfs_bmap_cancel | ( | xfs_bmap_free_t * | flist | ) |
Definition at line 3748 of file xfs_bmap.c.
Definition at line 3613 of file xfs_bmap.c.
Definition at line 5989 of file xfs_bmap.c.
STATIC void xfs_bmap_count_leaves | ( | xfs_ifork_t * | ifp, |
xfs_extnum_t | idx, | ||
int | numrecs, | ||
int * | count | ||
) |
Definition at line 6108 of file xfs_bmap.c.
STATIC int xfs_bmap_count_tree | ( | xfs_mount_t * | mp, |
xfs_trans_t * | tp, | ||
xfs_ifork_t * | ifp, | ||
xfs_fsblock_t | blockno, | ||
int | levelin, | ||
int * | count | ||
) |
Definition at line 6038 of file xfs_bmap.c.
STATIC int xfs_bmap_del_extent | ( | xfs_inode_t * | ip, |
xfs_trans_t * | tp, | ||
xfs_extnum_t * | idx, | ||
xfs_bmap_free_t * | flist, | ||
xfs_btree_cur_t * | cur, | ||
xfs_bmbt_irec_t * | del, | ||
int * | logflagsp, | ||
int | whichfork | ||
) |
Definition at line 2690 of file xfs_bmap.c.
STATIC void xfs_bmap_del_free | ( | xfs_bmap_free_t * | flist, |
xfs_bmap_free_item_t * | prev, | ||
xfs_bmap_free_item_t * | free | ||
) |
Definition at line 3012 of file xfs_bmap.c.
STATIC void xfs_bmap_disk_count_leaves | ( | struct xfs_mount * | mp, |
struct xfs_btree_block * | block, | ||
int | numrecs, | ||
int * | count | ||
) |
Definition at line 6127 of file xfs_bmap.c.
int xfs_bmap_eof | ( | struct xfs_inode * | ip, |
xfs_fileoff_t | endoff, | ||
int | whichfork, | ||
int * | eof | ||
) |
Definition at line 3936 of file xfs_bmap.c.
STATIC int xfs_bmap_extents_to_btree | ( | xfs_trans_t * | tp, |
xfs_inode_t * | ip, | ||
xfs_fsblock_t * | firstblock, | ||
xfs_bmap_free_t * | flist, | ||
xfs_btree_cur_t ** | curp, | ||
int | wasdel, | ||
int * | logflagsp, | ||
int | whichfork | ||
) |
Definition at line 3030 of file xfs_bmap.c.
STATIC int xfs_bmap_extsize_align | ( | xfs_mount_t * | mp, |
xfs_bmbt_irec_t * | gotp, | ||
xfs_bmbt_irec_t * | prevp, | ||
xfs_extlen_t | extsz, | ||
int | rt, | ||
int | eof, | ||
int | delay, | ||
int | convert, | ||
xfs_fileoff_t * | offp, | ||
xfs_extlen_t * | lenp | ||
) |
Definition at line 1858 of file xfs_bmap.c.
int xfs_bmap_finish | ( | xfs_trans_t ** | tp, |
xfs_bmap_free_t * | flist, | ||
int * | committed | ||
) |
Definition at line 3669 of file xfs_bmap.c.
int xfs_bmap_first_unused | ( | xfs_trans_t * | tp, |
xfs_inode_t * | ip, | ||
xfs_extlen_t | len, | ||
xfs_fileoff_t * | first_unused, | ||
int | whichfork | ||
) |
Definition at line 3772 of file xfs_bmap.c.
Definition at line 3193 of file xfs_bmap.c.
STATIC int xfs_bmap_isaeof | ( | struct xfs_bmalloca * | bma, |
int | whichfork | ||
) |
Definition at line 3906 of file xfs_bmap.c.
int xfs_bmap_last_before | ( | xfs_trans_t * | tp, |
xfs_inode_t * | ip, | ||
xfs_fileoff_t * | last_block, | ||
int | whichfork | ||
) |
Definition at line 3825 of file xfs_bmap.c.
STATIC int xfs_bmap_last_extent | ( | struct xfs_trans * | tp, |
struct xfs_inode * | ip, | ||
int | whichfork, | ||
struct xfs_bmbt_irec * | rec, | ||
int * | is_empty | ||
) |
Definition at line 3868 of file xfs_bmap.c.
int xfs_bmap_last_offset | ( | struct xfs_trans * | tp, |
struct xfs_inode * | ip, | ||
xfs_fileoff_t * | last_block, | ||
int | whichfork | ||
) |
Definition at line 3959 of file xfs_bmap.c.
STATIC int xfs_bmap_local_to_extents | ( | xfs_trans_t * | tp, |
xfs_inode_t * | ip, | ||
xfs_fsblock_t * | firstblock, | ||
xfs_extlen_t | total, | ||
int * | logflagsp, | ||
int | whichfork | ||
) |
Definition at line 3216 of file xfs_bmap.c.
Definition at line 3992 of file xfs_bmap.c.
int xfs_bmap_punch_delalloc_range | ( | struct xfs_inode * | ip, |
xfs_fileoff_t | start_fsb, | ||
xfs_fileoff_t | length | ||
) |
Definition at line 6151 of file xfs_bmap.c.
Definition at line 4042 of file xfs_bmap.c.
STATIC int xfs_bmap_rtalloc | ( | xfs_bmalloca_t * | ap | ) |
Definition at line 2168 of file xfs_bmap.c.
Definition at line 4020 of file xfs_bmap.c.
STATIC xfs_bmbt_rec_host_t * xfs_bmap_search_extents | ( | xfs_inode_t * | ip, |
xfs_fileoff_t | bno, | ||
int | whichfork, | ||
int * | eofp, | ||
xfs_extnum_t * | lastxp, | ||
xfs_bmbt_irec_t * | gotp, | ||
xfs_bmbt_irec_t * | prevp | ||
) |
Definition at line 3359 of file xfs_bmap.c.
STATIC xfs_bmbt_rec_host_t* xfs_bmap_search_multi_extents | ( | xfs_ifork_t * | ifp, |
xfs_fileoff_t | bno, | ||
int * | eofp, | ||
xfs_extnum_t * | lastxp, | ||
xfs_bmbt_irec_t * | gotp, | ||
xfs_bmbt_irec_t * | prevp | ||
) |
Definition at line 3308 of file xfs_bmap.c.
STATIC xfs_filblks_t xfs_bmap_worst_indlen | ( | xfs_inode_t * | ip, |
xfs_filblks_t | len | ||
) |
Definition at line 3399 of file xfs_bmap.c.
int xfs_bmapi_allocate | ( | struct xfs_bmalloca * | args | ) |
Definition at line 4765 of file xfs_bmap.c.
STATIC int xfs_bmapi_convert_unwritten | ( | struct xfs_bmalloca * | bma, |
struct xfs_bmbt_irec * | mval, | ||
xfs_filblks_t | len, | ||
int | flags | ||
) |
Definition at line 4782 of file xfs_bmap.c.
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.
STATIC int xfs_bmapi_reserve_delalloc | ( | struct xfs_inode * | ip, |
xfs_fileoff_t | aoff, | ||
xfs_filblks_t | len, | ||
struct xfs_bmbt_irec * | got, | ||
struct xfs_bmbt_irec * | prev, | ||
xfs_extnum_t * | lastx, | ||
int | eof | ||
) |
Definition at line 4432 of file xfs_bmap.c.
STATIC void xfs_bmapi_trim_map | ( | struct xfs_bmbt_irec * | mval, |
struct xfs_bmbt_irec * | got, | ||
xfs_fileoff_t * | bno, | ||
xfs_filblks_t | len, | ||
xfs_fileoff_t | obno, | ||
xfs_fileoff_t | end, | ||
int | n, | ||
int | flags | ||
) |
Definition at line 4244 of file xfs_bmap.c.
STATIC void xfs_bmapi_update_map | ( | struct xfs_bmbt_irec ** | map, |
xfs_fileoff_t * | bno, | ||
xfs_filblks_t * | len, | ||
xfs_fileoff_t | obno, | ||
xfs_fileoff_t | end, | ||
int * | n, | ||
int | flags | ||
) |
Definition at line 4290 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.
STATIC int xfs_bmbt_lookup_eq | ( | struct xfs_btree_cur * | cur, |
xfs_fileoff_t | off, | ||
xfs_fsblock_t | bno, | ||
xfs_filblks_t | len, | ||
int * | stat | ||
) |
Definition at line 223 of file xfs_bmap.c.
STATIC int xfs_bmbt_lookup_ge | ( | struct xfs_btree_cur * | cur, |
xfs_fileoff_t | off, | ||
xfs_fsblock_t | bno, | ||
xfs_filblks_t | len, | ||
int * | stat | ||
) |
Definition at line 237 of file xfs_bmap.c.
STATIC int xfs_bmbt_update | ( | struct xfs_btree_cur * | cur, |
xfs_fileoff_t | off, | ||
xfs_fsblock_t | bno, | ||
xfs_filblks_t | len, | ||
xfs_exntst_t | state | ||
) |
Definition at line 276 of file xfs_bmap.c.
int xfs_bunmapi | ( | xfs_trans_t * | tp, |
struct xfs_inode * | ip, | ||
xfs_fileoff_t | bno, | ||
xfs_filblks_t | len, | ||
int | flags, | ||
xfs_extnum_t | nexts, | ||
xfs_fsblock_t * | firstblock, | ||
xfs_bmap_free_t * | flist, | ||
int * | done | ||
) |
Definition at line 5086 of file xfs_bmap.c.
Definition at line 3170 of file xfs_bmap.c.
xfs_daddr_t xfs_fsb_to_db | ( | struct xfs_inode * | ip, |
xfs_fsblock_t | fsb | ||
) |
Definition at line 6223 of file xfs_bmap.c.
int xfs_getbmap | ( | xfs_inode_t * | ip, |
struct getbmapx * | bmv, | ||
xfs_bmap_format_t | formatter, | ||
void * | arg | ||
) |
Definition at line 5511 of file xfs_bmap.c.
STATIC int xfs_getbmapx_fix_eof_hole | ( | xfs_inode_t * | ip, |
struct getbmapx * | out, | ||
int | prealloced, | ||
__int64_t | end, | ||
xfs_fsblock_t | startblock | ||
) |
Definition at line 5463 of file xfs_bmap.c.
kmem_zone_t* xfs_bmap_free_item_zone |
Definition at line 52 of file xfs_bmap.c.