diff options
Diffstat (limited to 'fs/xfs/xfs_bmap.h')
| -rw-r--r-- | fs/xfs/xfs_bmap.h | 37 |
1 files changed, 7 insertions, 30 deletions
diff --git a/fs/xfs/xfs_bmap.h b/fs/xfs/xfs_bmap.h index 419dafb9d87d..b13569a6179b 100644 --- a/fs/xfs/xfs_bmap.h +++ b/fs/xfs/xfs_bmap.h | |||
| @@ -28,20 +28,6 @@ struct xfs_trans; | |||
| 28 | extern kmem_zone_t *xfs_bmap_free_item_zone; | 28 | extern kmem_zone_t *xfs_bmap_free_item_zone; |
| 29 | 29 | ||
| 30 | /* | 30 | /* |
| 31 | * DELTA: describe a change to the in-core extent list. | ||
| 32 | * | ||
| 33 | * Internally the use of xed_blockount is somewhat funky. | ||
| 34 | * xed_blockcount contains an offset much of the time because this | ||
| 35 | * makes merging changes easier. (xfs_fileoff_t and xfs_filblks_t are | ||
| 36 | * the same underlying type). | ||
| 37 | */ | ||
| 38 | typedef struct xfs_extdelta | ||
| 39 | { | ||
| 40 | xfs_fileoff_t xed_startoff; /* offset of range */ | ||
| 41 | xfs_filblks_t xed_blockcount; /* blocks in range */ | ||
| 42 | } xfs_extdelta_t; | ||
| 43 | |||
| 44 | /* | ||
| 45 | * List of extents to be free "later". | 31 | * List of extents to be free "later". |
| 46 | * The list is kept sorted on xbf_startblock. | 32 | * The list is kept sorted on xbf_startblock. |
| 47 | */ | 33 | */ |
| @@ -82,16 +68,13 @@ typedef struct xfs_bmap_free | |||
| 82 | #define XFS_BMAPI_DELAY 0x002 /* delayed write operation */ | 68 | #define XFS_BMAPI_DELAY 0x002 /* delayed write operation */ |
| 83 | #define XFS_BMAPI_ENTIRE 0x004 /* return entire extent, not trimmed */ | 69 | #define XFS_BMAPI_ENTIRE 0x004 /* return entire extent, not trimmed */ |
| 84 | #define XFS_BMAPI_METADATA 0x008 /* mapping metadata not user data */ | 70 | #define XFS_BMAPI_METADATA 0x008 /* mapping metadata not user data */ |
| 85 | #define XFS_BMAPI_EXACT 0x010 /* allocate only to spec'd bounds */ | 71 | #define XFS_BMAPI_ATTRFORK 0x010 /* use attribute fork not data */ |
| 86 | #define XFS_BMAPI_ATTRFORK 0x020 /* use attribute fork not data */ | 72 | #define XFS_BMAPI_RSVBLOCKS 0x020 /* OK to alloc. reserved data blocks */ |
| 87 | #define XFS_BMAPI_ASYNC 0x040 /* bunmapi xactions can be async */ | 73 | #define XFS_BMAPI_PREALLOC 0x040 /* preallocation op: unwritten space */ |
| 88 | #define XFS_BMAPI_RSVBLOCKS 0x080 /* OK to alloc. reserved data blocks */ | 74 | #define XFS_BMAPI_IGSTATE 0x080 /* Ignore state - */ |
| 89 | #define XFS_BMAPI_PREALLOC 0x100 /* preallocation op: unwritten space */ | ||
| 90 | #define XFS_BMAPI_IGSTATE 0x200 /* Ignore state - */ | ||
| 91 | /* combine contig. space */ | 75 | /* combine contig. space */ |
| 92 | #define XFS_BMAPI_CONTIG 0x400 /* must allocate only one extent */ | 76 | #define XFS_BMAPI_CONTIG 0x100 /* must allocate only one extent */ |
| 93 | /* XFS_BMAPI_DIRECT_IO 0x800 */ | 77 | #define XFS_BMAPI_CONVERT 0x200 /* unwritten extent conversion - */ |
| 94 | #define XFS_BMAPI_CONVERT 0x1000 /* unwritten extent conversion - */ | ||
| 95 | /* need write cache flushing and no */ | 78 | /* need write cache flushing and no */ |
| 96 | /* additional allocation alignments */ | 79 | /* additional allocation alignments */ |
| 97 | 80 | ||
| @@ -100,9 +83,7 @@ typedef struct xfs_bmap_free | |||
| 100 | { XFS_BMAPI_DELAY, "DELAY" }, \ | 83 | { XFS_BMAPI_DELAY, "DELAY" }, \ |
| 101 | { XFS_BMAPI_ENTIRE, "ENTIRE" }, \ | 84 | { XFS_BMAPI_ENTIRE, "ENTIRE" }, \ |
| 102 | { XFS_BMAPI_METADATA, "METADATA" }, \ | 85 | { XFS_BMAPI_METADATA, "METADATA" }, \ |
| 103 | { XFS_BMAPI_EXACT, "EXACT" }, \ | ||
| 104 | { XFS_BMAPI_ATTRFORK, "ATTRFORK" }, \ | 86 | { XFS_BMAPI_ATTRFORK, "ATTRFORK" }, \ |
| 105 | { XFS_BMAPI_ASYNC, "ASYNC" }, \ | ||
| 106 | { XFS_BMAPI_RSVBLOCKS, "RSVBLOCKS" }, \ | 87 | { XFS_BMAPI_RSVBLOCKS, "RSVBLOCKS" }, \ |
| 107 | { XFS_BMAPI_PREALLOC, "PREALLOC" }, \ | 88 | { XFS_BMAPI_PREALLOC, "PREALLOC" }, \ |
| 108 | { XFS_BMAPI_IGSTATE, "IGSTATE" }, \ | 89 | { XFS_BMAPI_IGSTATE, "IGSTATE" }, \ |
| @@ -310,9 +291,7 @@ xfs_bmapi( | |||
| 310 | xfs_extlen_t total, /* total blocks needed */ | 291 | xfs_extlen_t total, /* total blocks needed */ |
| 311 | struct xfs_bmbt_irec *mval, /* output: map values */ | 292 | struct xfs_bmbt_irec *mval, /* output: map values */ |
| 312 | int *nmap, /* i/o: mval size/count */ | 293 | int *nmap, /* i/o: mval size/count */ |
| 313 | xfs_bmap_free_t *flist, /* i/o: list extents to free */ | 294 | xfs_bmap_free_t *flist); /* i/o: list extents to free */ |
| 314 | xfs_extdelta_t *delta); /* o: change made to incore | ||
| 315 | extents */ | ||
| 316 | 295 | ||
| 317 | /* | 296 | /* |
| 318 | * Map file blocks to filesystem blocks, simple version. | 297 | * Map file blocks to filesystem blocks, simple version. |
| @@ -346,8 +325,6 @@ xfs_bunmapi( | |||
| 346 | xfs_fsblock_t *firstblock, /* first allocated block | 325 | xfs_fsblock_t *firstblock, /* first allocated block |
| 347 | controls a.g. for allocs */ | 326 | controls a.g. for allocs */ |
| 348 | xfs_bmap_free_t *flist, /* i/o: list extents to free */ | 327 | xfs_bmap_free_t *flist, /* i/o: list extents to free */ |
| 349 | xfs_extdelta_t *delta, /* o: change made to incore | ||
| 350 | extents */ | ||
| 351 | int *done); /* set if not done yet */ | 328 | int *done); /* set if not done yet */ |
| 352 | 329 | ||
| 353 | /* | 330 | /* |
