Lines Matching refs:fake
459 struct xfs_bmap_intent fake = { }; in xfs_bui_item_recover() local
476 fake.bi_whichfork = (map->me_flags & XFS_BMAP_EXTENT_ATTR_FORK) ? in xfs_bui_item_recover()
478 fake.bi_type = map->me_flags & XFS_BMAP_EXTENT_TYPE_MASK; in xfs_bui_item_recover()
494 if (fake.bi_type == XFS_BMAP_MAP) in xfs_bui_item_recover()
499 error = xfs_iext_count_may_overflow(ip, fake.bi_whichfork, iext_delta); in xfs_bui_item_recover()
505 fake.bi_owner = ip; in xfs_bui_item_recover()
506 fake.bi_bmap.br_startblock = map->me_startblock; in xfs_bui_item_recover()
507 fake.bi_bmap.br_startoff = map->me_startoff; in xfs_bui_item_recover()
508 fake.bi_bmap.br_blockcount = map->me_len; in xfs_bui_item_recover()
509 fake.bi_bmap.br_state = (map->me_flags & XFS_BMAP_EXTENT_UNWRITTEN) ? in xfs_bui_item_recover()
512 error = xfs_trans_log_finish_bmap_update(tp, budp, &fake); in xfs_bui_item_recover()
519 if (fake.bi_bmap.br_blockcount > 0) { in xfs_bui_item_recover()
520 ASSERT(fake.bi_type == XFS_BMAP_UNMAP); in xfs_bui_item_recover()
521 xfs_bmap_unmap_extent(tp, ip, &fake.bi_bmap); in xfs_bui_item_recover()