Lines Matching +full:ip +full:- +full:blocks
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2000-2006 Silicon Graphics, Inc.
23 struct xfs_inode *ip; /* incore inode pointer */ member
36 xfs_extlen_t total; /* total blocks needed for xaction */
37 xfs_extlen_t minlen; /* minimum allocation size (blocks) */
54 xfs_extlen_t xefi_blockcount;/* number of blocks in extent */
71 * unwritten extent conversion - this needs write cache flushing and no additional
78 * allocate zeroed extents - this requires all newly allocated user data extents
86 * Map the inode offset to the block given in ap->firstblock. Primarily
91 * refcount, or freeing the blocks.
136 #define DELAYSTARTBLOCK ((xfs_fsblock_t)-1LL)
137 #define HOLESTARTBLOCK ((xfs_fsblock_t)-2LL)
164 return irec->br_startblock != HOLESTARTBLOCK && in xfs_bmap_is_real_extent()
165 irec->br_startblock != DELAYSTARTBLOCK && in xfs_bmap_is_real_extent()
166 !isnullstartblock(irec->br_startblock); in xfs_bmap_is_real_extent()
176 irec->br_state != XFS_EXT_UNWRITTEN; in xfs_bmap_is_written_extent()
183 #define xfs_valid_startblock(ip, startblock) \ argument
184 ((startblock) != 0 || XFS_IS_REALTIME_INODE(ip))
188 int xfs_bmap_add_attrfork(struct xfs_inode *ip, int size, int rsvd);
189 int xfs_bmap_set_attrforkoff(struct xfs_inode *ip, int size, int *version);
191 struct xfs_inode *ip, int whichfork);
196 int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip,
198 int xfs_bmap_last_before(struct xfs_trans *tp, struct xfs_inode *ip,
200 int xfs_bmap_last_offset(struct xfs_inode *ip, xfs_fileoff_t *unused,
202 int xfs_bmap_one_block(struct xfs_inode *ip, int whichfork);
203 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno,
206 int xfs_bmapi_write(struct xfs_trans *tp, struct xfs_inode *ip,
209 int __xfs_bunmapi(struct xfs_trans *tp, struct xfs_inode *ip,
212 int xfs_bunmapi(struct xfs_trans *tp, struct xfs_inode *ip,
215 int xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork,
218 void xfs_bmap_del_extent_cow(struct xfs_inode *ip,
221 uint xfs_default_attroffset(struct xfs_inode *ip);
222 int xfs_bmap_collapse_extents(struct xfs_trans *tp, struct xfs_inode *ip,
225 int xfs_bmap_can_insert_extents(struct xfs_inode *ip, xfs_fileoff_t off,
227 int xfs_bmap_insert_extents(struct xfs_trans *tp, struct xfs_inode *ip,
230 int xfs_bmap_split_extent(struct xfs_trans *tp, struct xfs_inode *ip,
232 int xfs_bmapi_reserve_delalloc(struct xfs_inode *ip, int whichfork,
236 int xfs_bmapi_convert_delalloc(struct xfs_inode *ip, int whichfork,
239 struct xfs_inode *ip, int whichfork,
266 int xfs_bmap_finish_one(struct xfs_trans *tp, struct xfs_inode *ip,
270 void xfs_bmap_map_extent(struct xfs_trans *tp, struct xfs_inode *ip,
272 void xfs_bmap_unmap_extent(struct xfs_trans *tp, struct xfs_inode *ip,
287 xfs_failaddr_t xfs_bmap_validate_extent(struct xfs_inode *ip, int whichfork,
290 int xfs_bmapi_remap(struct xfs_trans *tp, struct xfs_inode *ip,