Lines Matching refs:irec
55 struct xfs_bmbt_irec *irec) in xfs_iext_set() argument
57 ASSERT((irec->br_startoff & ~XFS_IEXT_STARTOFF_MASK) == 0); in xfs_iext_set()
58 ASSERT((irec->br_blockcount & ~XFS_IEXT_LENGTH_MASK) == 0); in xfs_iext_set()
59 ASSERT((irec->br_startblock & ~XFS_IEXT_STARTBLOCK_MASK) == 0); in xfs_iext_set()
61 rec->lo = irec->br_startoff & XFS_IEXT_STARTOFF_MASK; in xfs_iext_set()
62 rec->hi = irec->br_blockcount & XFS_IEXT_LENGTH_MASK; in xfs_iext_set()
64 rec->lo |= (irec->br_startblock << 54); in xfs_iext_set()
65 rec->hi |= ((irec->br_startblock & ~xfs_mask64lo(10)) << (22 - 10)); in xfs_iext_set()
67 if (irec->br_state == XFS_EXT_UNWRITTEN) in xfs_iext_set()
73 struct xfs_bmbt_irec *irec, in xfs_iext_get() argument
76 irec->br_startoff = rec->lo & XFS_IEXT_STARTOFF_MASK; in xfs_iext_get()
77 irec->br_blockcount = rec->hi & XFS_IEXT_LENGTH_MASK; in xfs_iext_get()
79 irec->br_startblock = rec->lo >> 54; in xfs_iext_get()
80 irec->br_startblock |= (rec->hi & xfs_mask64hi(42)) >> (22 - 10); in xfs_iext_get()
83 irec->br_state = XFS_EXT_UNWRITTEN; in xfs_iext_get()
85 irec->br_state = XFS_EXT_NORM; in xfs_iext_get()
628 struct xfs_bmbt_irec *irec, in xfs_iext_insert() argument
632 xfs_fileoff_t offset = irec->br_startoff; in xfs_iext_insert()
646 xfs_iext_rec_cmp(cur_rec(cur), irec->br_startoff) != 0); in xfs_iext_insert()
662 xfs_iext_set(cur_rec(cur), irec); in xfs_iext_insert()