Lines Matching refs:lblk

431 	xfs_dablk_t			lblk,  in xchk_directory_check_free_entry()  argument
449 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_check_free_entry()
456 xfs_dablk_t lblk, in xchk_directory_data_bestfree() argument
475 if (lblk != XFS_B_TO_FSBT(mp, XFS_DIR2_DATA_OFFSET)) in xchk_directory_data_bestfree()
476 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
480 error = xfs_dir3_data_read(sc->tp, sc->ip, sc->ip->i_ino, lblk, in xchk_directory_data_bestfree()
483 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_data_bestfree()
500 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
510 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
516 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
539 lblk); in xchk_directory_data_bestfree()
549 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
557 xchk_directory_check_free_entry(sc, lblk, bf, dup); in xchk_directory_data_bestfree()
564 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
574 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
578 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
594 xfs_dablk_t lblk, in xchk_directory_check_freesp() argument
603 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_check_freesp()
606 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_check_freesp()
615 xfs_dablk_t lblk) in xchk_directory_leaf1_bestfree() argument
633 error = xfs_dir3_leaf_read(sc->tp, sc->ip, sc->ip->i_ino, lblk, &bp); in xchk_directory_leaf1_bestfree()
634 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_leaf1_bestfree()
648 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
660 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
666 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
672 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
680 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
687 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
697 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, in xchk_directory_leaf1_bestfree()
704 lblk); in xchk_directory_leaf1_bestfree()
711 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
713 xchk_directory_check_freesp(sc, lblk, dbp, best); in xchk_directory_leaf1_bestfree()
728 xfs_dablk_t lblk) in xchk_directory_free_bestfree() argument
739 error = xfs_dir2_free_read(sc->tp, sc->ip, sc->ip->i_ino, lblk, &bp); in xchk_directory_free_bestfree()
740 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_free_bestfree()
748 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_free_bestfree()
762 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, in xchk_directory_free_bestfree()
765 xchk_directory_check_freesp(sc, lblk, dbp, best); in xchk_directory_free_bestfree()
770 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_free_bestfree()
793 xfs_fileoff_t lblk; in xchk_directory_blocks() local
806 lblk = XFS_B_TO_FSB(mp, XFS_DIR2_DATA_OFFSET); in xchk_directory_blocks()
813 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_blocks()
817 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
834 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
836 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
837 lblk += args.geo->fsbcount) { in xchk_directory_blocks()
838 last_data_db = xfs_dir2_da_to_db(args.geo, lblk); in xchk_directory_blocks()
839 error = xchk_directory_data_bestfree(sc, lblk, in xchk_directory_blocks()
845 lblk = roundup(dabno, args.geo->fsbcount); in xchk_directory_blocks()
846 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
858 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_blocks()
871 lblk = free_lblk; in xchk_directory_blocks()
872 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
878 lblk = got.br_startoff; in xchk_directory_blocks()
879 if (lblk & ~0xFFFFFFFFULL) { in xchk_directory_blocks()
880 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_blocks()
884 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_blocks()
899 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
901 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
902 lblk += args.geo->fsbcount) { in xchk_directory_blocks()
904 lblk); in xchk_directory_blocks()
909 lblk = roundup(dabno, args.geo->fsbcount); in xchk_directory_blocks()
910 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()