Lines Matching refs:lblk
293 xfs_dablk_t lblk, in xchk_directory_check_free_entry() argument
311 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_check_free_entry()
318 xfs_dablk_t lblk, in xchk_directory_data_bestfree() argument
341 if (lblk != XFS_B_TO_FSBT(mp, XFS_DIR2_DATA_OFFSET)) in xchk_directory_data_bestfree()
342 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
346 error = xfs_dir3_data_read(sc->tp, sc->ip, lblk, -1, &bp); in xchk_directory_data_bestfree()
348 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_data_bestfree()
365 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
375 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
381 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
404 lblk); in xchk_directory_data_bestfree()
414 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
422 xchk_directory_check_free_entry(sc, lblk, bf, dup); in xchk_directory_data_bestfree()
429 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
439 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
443 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_data_bestfree()
459 xfs_dablk_t lblk, in xchk_directory_check_freesp() argument
468 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_check_freesp()
471 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_check_freesp()
479 xfs_dablk_t lblk) in xchk_directory_leaf1_bestfree() argument
499 error = xfs_dir3_leaf_read(sc->tp, sc->ip, lblk, -1, &bp); in xchk_directory_leaf1_bestfree()
500 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_leaf1_bestfree()
515 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
523 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
529 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
535 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
543 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
549 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_leaf1_bestfree()
560 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, in xchk_directory_leaf1_bestfree()
563 xchk_directory_check_freesp(sc, lblk, dbp, best); in xchk_directory_leaf1_bestfree()
577 xfs_dablk_t lblk) in xchk_directory_free_bestfree() argument
589 error = xfs_dir2_free_read(sc->tp, sc->ip, lblk, &bp); in xchk_directory_free_bestfree()
590 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_free_bestfree()
598 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_free_bestfree()
613 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, in xchk_directory_free_bestfree()
616 xchk_directory_check_freesp(sc, lblk, dbp, best); in xchk_directory_free_bestfree()
621 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_free_bestfree()
637 xfs_fileoff_t lblk; in xchk_directory_blocks() local
650 lblk = XFS_B_TO_FSB(mp, XFS_DIR2_DATA_OFFSET); in xchk_directory_blocks()
659 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) in xchk_directory_blocks()
663 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
689 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
691 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
692 lblk += args.geo->fsbcount) { in xchk_directory_blocks()
693 error = xchk_directory_data_bestfree(sc, lblk, in xchk_directory_blocks()
699 lblk = roundup(dabno, args.geo->fsbcount); in xchk_directory_blocks()
700 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
712 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_blocks()
725 lblk = free_lblk; in xchk_directory_blocks()
726 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
732 lblk = got.br_startoff; in xchk_directory_blocks()
733 if (lblk & ~0xFFFFFFFFULL) { in xchk_directory_blocks()
734 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_blocks()
738 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk); in xchk_directory_blocks()
753 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
755 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
756 lblk += args.geo->fsbcount) { in xchk_directory_blocks()
758 lblk); in xchk_directory_blocks()
763 lblk = roundup(dabno, args.geo->fsbcount); in xchk_directory_blocks()
764 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()