Lines Matching refs:bmap
283 struct xfs_map_extent *bmap, in xfs_trans_set_bmap_flags() argument
288 bmap->me_flags = 0; in xfs_trans_set_bmap_flags()
292 bmap->me_flags = type; in xfs_trans_set_bmap_flags()
298 bmap->me_flags |= XFS_BMAP_EXTENT_UNWRITTEN; in xfs_trans_set_bmap_flags()
300 bmap->me_flags |= XFS_BMAP_EXTENT_ATTR_FORK; in xfs_trans_set_bmap_flags()
308 struct xfs_bmap_intent *bmap) in xfs_bmap_update_log_item() argument
324 map->me_owner = bmap->bi_owner->i_ino; in xfs_bmap_update_log_item()
325 map->me_startblock = bmap->bi_bmap.br_startblock; in xfs_bmap_update_log_item()
326 map->me_startoff = bmap->bi_bmap.br_startoff; in xfs_bmap_update_log_item()
327 map->me_len = bmap->bi_bmap.br_blockcount; in xfs_bmap_update_log_item()
328 xfs_trans_set_bmap_flags(map, bmap->bi_type, bmap->bi_whichfork, in xfs_bmap_update_log_item()
329 bmap->bi_bmap.br_state); in xfs_bmap_update_log_item()
341 struct xfs_bmap_intent *bmap; in xfs_bmap_update_create_intent() local
348 list_for_each_entry(bmap, items, bi_list) in xfs_bmap_update_create_intent()
349 xfs_bmap_update_log_item(tp, buip, bmap); in xfs_bmap_update_create_intent()
371 struct xfs_bmap_intent *bmap; in xfs_bmap_update_finish_item() local
375 bmap = container_of(item, struct xfs_bmap_intent, bi_list); in xfs_bmap_update_finish_item()
376 count = bmap->bi_bmap.br_blockcount; in xfs_bmap_update_finish_item()
378 bmap->bi_type, in xfs_bmap_update_finish_item()
379 bmap->bi_owner, bmap->bi_whichfork, in xfs_bmap_update_finish_item()
380 bmap->bi_bmap.br_startoff, in xfs_bmap_update_finish_item()
381 bmap->bi_bmap.br_startblock, in xfs_bmap_update_finish_item()
383 bmap->bi_bmap.br_state); in xfs_bmap_update_finish_item()
385 ASSERT(bmap->bi_type == XFS_BMAP_UNMAP); in xfs_bmap_update_finish_item()
386 bmap->bi_bmap.br_blockcount = count; in xfs_bmap_update_finish_item()
389 kmem_free(bmap); in xfs_bmap_update_finish_item()
406 struct xfs_bmap_intent *bmap; in xfs_bmap_update_cancel_item() local
408 bmap = container_of(item, struct xfs_bmap_intent, bi_list); in xfs_bmap_update_cancel_item()
409 kmem_free(bmap); in xfs_bmap_update_cancel_item()
427 struct xfs_map_extent *bmap; in xfs_bui_validate() local
433 bmap = &buip->bui_format.bui_extents[0]; in xfs_bui_validate()
435 if (bmap->me_flags & ~XFS_BMAP_EXTENT_FLAGS) in xfs_bui_validate()
438 switch (bmap->me_flags & XFS_BMAP_EXTENT_TYPE_MASK) { in xfs_bui_validate()
446 if (!xfs_verify_ino(mp, bmap->me_owner)) in xfs_bui_validate()
449 if (!xfs_verify_fileext(mp, bmap->me_startoff, bmap->me_len)) in xfs_bui_validate()
452 return xfs_verify_fsbext(mp, bmap->me_startblock, bmap->me_len); in xfs_bui_validate()
469 struct xfs_map_extent *bmap; in xfs_bui_item_recover() local
484 bmap = &buip->bui_format.bui_extents[0]; in xfs_bui_item_recover()
485 state = (bmap->me_flags & XFS_BMAP_EXTENT_UNWRITTEN) ? in xfs_bui_item_recover()
487 whichfork = (bmap->me_flags & XFS_BMAP_EXTENT_ATTR_FORK) ? in xfs_bui_item_recover()
489 bui_type = bmap->me_flags & XFS_BMAP_EXTENT_TYPE_MASK; in xfs_bui_item_recover()
491 error = xlog_recover_iget(mp, bmap->me_owner, &ip); in xfs_bui_item_recover()
514 count = bmap->me_len; in xfs_bui_item_recover()
516 whichfork, bmap->me_startoff, bmap->me_startblock, in xfs_bui_item_recover()
519 XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, mp, bmap, in xfs_bui_item_recover()
520 sizeof(*bmap)); in xfs_bui_item_recover()
526 irec.br_startblock = bmap->me_startblock; in xfs_bui_item_recover()
528 irec.br_startoff = bmap->me_startoff; in xfs_bui_item_recover()