Lines Matching refs:lblk
318 xfs_dablk_t lblk, in xchk_directory_check_free_entry() argument
336 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_check_free_entry()
343 xfs_dablk_t lblk, in xchk_directory_data_bestfree() argument
362 if (lblk != XFS_B_TO_FSBT(mp, XFS_DIR2_DATA_OFFSET)) in xchk_directory_data_bestfree()
363 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
367 error = xfs_dir3_data_read(sc->tp, sc->ip, lblk, 0, &bp); in xchk_directory_data_bestfree()
369 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_data_bestfree()
386 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
396 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
402 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
425 lblk); in xchk_directory_data_bestfree()
435 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
443 xchk_directory_check_free_entry(sc, lblk, bf, dup); in xchk_directory_data_bestfree()
450 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
460 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
464 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
480 xfs_dablk_t lblk, in xchk_directory_check_freesp() argument
489 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_check_freesp()
492 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_check_freesp()
501 xfs_dablk_t lblk) in xchk_directory_leaf1_bestfree() argument
519 error = xfs_dir3_leaf_read(sc->tp, sc->ip, lblk, &bp); in xchk_directory_leaf1_bestfree()
520 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_leaf1_bestfree()
534 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
546 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
552 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
558 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
566 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
573 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
584 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, in xchk_directory_leaf1_bestfree()
591 lblk); in xchk_directory_leaf1_bestfree()
598 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
600 xchk_directory_check_freesp(sc, lblk, dbp, best); in xchk_directory_leaf1_bestfree()
615 xfs_dablk_t lblk) in xchk_directory_free_bestfree() argument
626 error = xfs_dir2_free_read(sc->tp, sc->ip, lblk, &bp); in xchk_directory_free_bestfree()
627 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_free_bestfree()
635 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_free_bestfree()
649 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, in xchk_directory_free_bestfree()
652 xchk_directory_check_freesp(sc, lblk, dbp, best); in xchk_directory_free_bestfree()
657 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_free_bestfree()
674 xfs_fileoff_t lblk; in xchk_directory_blocks() local
687 lblk = XFS_B_TO_FSB(mp, XFS_DIR2_DATA_OFFSET); in xchk_directory_blocks()
696 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_blocks()
700 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
717 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
719 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
720 lblk += args.geo->fsbcount) { in xchk_directory_blocks()
721 last_data_db = xfs_dir2_da_to_db(args.geo, lblk); in xchk_directory_blocks()
722 error = xchk_directory_data_bestfree(sc, lblk, in xchk_directory_blocks()
728 lblk = roundup(dabno, args.geo->fsbcount); in xchk_directory_blocks()
729 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
741 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_blocks()
754 lblk = free_lblk; in xchk_directory_blocks()
755 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
761 lblk = got.br_startoff; in xchk_directory_blocks()
762 if (lblk & ~0xFFFFFFFFULL) { in xchk_directory_blocks()
763 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_blocks()
767 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_blocks()
782 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
784 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
785 lblk += args.geo->fsbcount) { in xchk_directory_blocks()
787 lblk); in xchk_directory_blocks()
792 lblk = roundup(dabno, args.geo->fsbcount); in xchk_directory_blocks()
793 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()