Lines Matching refs:del

2804 	xfs_bmbt_irec_t		*del,	/* data to remove from extent list */  in xfs_bmap_del_extent()  argument
2839 ASSERT(del->br_blockcount > 0); in xfs_bmap_del_extent()
2842 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent()
2843 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent()
2847 ASSERT(ISNULLSTARTBLOCK(del->br_startblock) == delay); in xfs_bmap_del_extent()
2864 ASSERT(do_mod(del->br_blockcount, in xfs_bmap_del_extent()
2866 ASSERT(do_mod(del->br_startblock, in xfs_bmap_del_extent()
2868 bno = del->br_startblock; in xfs_bmap_del_extent()
2869 len = del->br_blockcount; in xfs_bmap_del_extent()
2884 nblks = del->br_blockcount; in xfs_bmap_del_extent()
2890 del_endblock = del->br_startblock + del->br_blockcount; in xfs_bmap_del_extent()
2909 switch (((got.br_startoff == del->br_startoff) << 1) | in xfs_bmap_del_extent()
2938 temp = got.br_blockcount - del->br_blockcount; in xfs_bmap_del_extent()
2957 got.br_blockcount - del->br_blockcount, in xfs_bmap_del_extent()
2966 temp = got.br_blockcount - del->br_blockcount; in xfs_bmap_del_extent()
2986 got.br_blockcount - del->br_blockcount, in xfs_bmap_del_extent()
2995 temp = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent()
3094 xfs_bmap_add_free(del->br_startblock, del->br_blockcount, flist, in xfs_bmap_del_extent()
5157 xfs_bmbt_irec_t del; /* extent being deleted */ in xfs_bunmapi() local
5257 del = got; in xfs_bunmapi()
5258 wasdel = ISNULLSTARTBLOCK(del.br_startblock); in xfs_bunmapi()
5260 del.br_startoff = start; in xfs_bunmapi()
5261 del.br_blockcount -= start - got.br_startoff; in xfs_bunmapi()
5263 del.br_startblock += start - got.br_startoff; in xfs_bunmapi()
5265 if (del.br_startoff + del.br_blockcount > bno + 1) in xfs_bunmapi()
5266 del.br_blockcount = bno + 1 - del.br_startoff; in xfs_bunmapi()
5267 sum = del.br_startblock + del.br_blockcount; in xfs_bunmapi()
5277 if (del.br_state == XFS_EXT_UNWRITTEN || in xfs_bunmapi()
5284 bno -= mod > del.br_blockcount ? in xfs_bunmapi()
5285 del.br_blockcount : mod; in xfs_bunmapi()
5296 ASSERT(del.br_state == XFS_EXT_NORM); in xfs_bunmapi()
5302 if (del.br_blockcount > mod) { in xfs_bunmapi()
5303 del.br_startoff += del.br_blockcount - mod; in xfs_bunmapi()
5304 del.br_startblock += del.br_blockcount - mod; in xfs_bunmapi()
5305 del.br_blockcount = mod; in xfs_bunmapi()
5307 del.br_state = XFS_EXT_UNWRITTEN; in xfs_bunmapi()
5308 error = xfs_bmap_add_extent(ip, lastx, &cur, &del, in xfs_bunmapi()
5314 if (isrt && (mod = do_mod(del.br_startblock, mp->m_sb.sb_rextsize))) { in xfs_bunmapi()
5321 if (del.br_blockcount > mod) { in xfs_bunmapi()
5322 del.br_blockcount -= mod; in xfs_bunmapi()
5323 del.br_startoff += mod; in xfs_bunmapi()
5324 del.br_startblock += mod; in xfs_bunmapi()
5325 } else if ((del.br_startoff == start && in xfs_bunmapi()
5326 (del.br_state == XFS_EXT_UNWRITTEN || in xfs_bunmapi()
5333 ASSERT(bno >= del.br_blockcount); in xfs_bunmapi()
5334 bno -= del.br_blockcount; in xfs_bunmapi()
5340 } else if (del.br_state == XFS_EXT_UNWRITTEN) { in xfs_bunmapi()
5351 ASSERT(del.br_startblock == in xfs_bunmapi()
5367 ASSERT(del.br_state == XFS_EXT_NORM); in xfs_bunmapi()
5368 del.br_state = XFS_EXT_UNWRITTEN; in xfs_bunmapi()
5370 &del, firstblock, flist, &logflags, in xfs_bunmapi()
5378 ASSERT(STARTBLOCKVAL(del.br_startblock) > 0); in xfs_bunmapi()
5380 (int)del.br_blockcount, rsvd); in xfs_bunmapi()
5383 mp, NULL, ip, -((long)del.br_blockcount), 0, in xfs_bunmapi()
5386 ip->i_delayed_blks -= del.br_blockcount; in xfs_bunmapi()
5406 del.br_startoff > got.br_startoff && in xfs_bunmapi()
5407 del.br_startoff + del.br_blockcount < in xfs_bunmapi()
5412 error = xfs_bmap_del_extent(ip, tp, lastx, flist, cur, &del, in xfs_bunmapi()
5417 bno = del.br_startoff - 1; in xfs_bunmapi()