Lines Matching refs:XFS_LBSIZE
655 tmpbuffer = kmem_alloc(XFS_LBSIZE(dp->i_mount), KM_SLEEP); in xfs_dir_leaf_to_shortform()
663 memcpy(tmpbuffer, bp->data, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_to_shortform()
666 memset(bp->data, 0, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_to_shortform()
715 kmem_free(tmpbuffer, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_to_shortform()
749 memcpy(bp2->data, bp1->data, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_to_node()
751 xfs_da_log_buf(args->trans, bp2, 0, XFS_LBSIZE(dp->i_mount) - 1); in xfs_dir_leaf_to_node()
800 memset((char *)leaf, 0, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_create()
803 INT_SET(hdr->firstused, ARCH_CONVERT, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_create()
805 INT_SET(hdr->firstused, ARCH_CONVERT, XFS_LBSIZE(dp->i_mount) - 1); in xfs_dir_leaf_create()
809 xfs_da_log_buf(args->trans, bp, 0, XFS_LBSIZE(dp->i_mount) - 1); in xfs_dir_leaf_create()
984 ASSERT(INT_GET(map->base, ARCH_CONVERT) < XFS_LBSIZE(mp)); in xfs_dir_leaf_add_work()
986 ASSERT(INT_GET(map->size, ARCH_CONVERT) < XFS_LBSIZE(mp)); in xfs_dir_leaf_add_work()
1039 lbsize = XFS_LBSIZE(mp); in xfs_dir_leaf_compact()
1471 …ASSERT((INT_GET(hdr->count, ARCH_CONVERT) > 0) && (INT_GET(hdr->count, ARCH_CONVERT) < (XFS_LBSIZE… in xfs_dir_leaf_remove()
1476 ASSERT(INT_GET(entry->nameidx, ARCH_CONVERT) < XFS_LBSIZE(mp)); in xfs_dir_leaf_remove()
1492 ASSERT(INT_GET(map->base, ARCH_CONVERT) < XFS_LBSIZE(mp)); in xfs_dir_leaf_remove()
1493 ASSERT(INT_GET(map->size, ARCH_CONVERT) < XFS_LBSIZE(mp)); in xfs_dir_leaf_remove()
1570 tmp = XFS_LBSIZE(mp); in xfs_dir_leaf_remove()
1574 ASSERT(INT_GET(entry->nameidx, ARCH_CONVERT) < XFS_LBSIZE(mp)); in xfs_dir_leaf_remove()
1717 ASSERT(INT_GET(leaf->hdr.count, ARCH_CONVERT) < (XFS_LBSIZE(args->dp->i_mount)/8)); in xfs_dir_leaf_lookup_int()
1807 …ET(hdr_s->count, ARCH_CONVERT) > 0) && (INT_GET(hdr_s->count, ARCH_CONVERT) < (XFS_LBSIZE(mp)/8))); in xfs_dir_leaf_moveents()
1810 ASSERT(INT_GET(hdr_d->count, ARCH_CONVERT) < (XFS_LBSIZE(mp)/8)); in xfs_dir_leaf_moveents()
1842 ASSERT(INT_GET(entry_d->nameidx, ARCH_CONVERT) + tmp <= XFS_LBSIZE(mp)); in xfs_dir_leaf_moveents()
1845 ASSERT(INT_GET(entry_s->nameidx, ARCH_CONVERT) + tmp <= XFS_LBSIZE(mp)); in xfs_dir_leaf_moveents()
1864 ASSERT((char *)entry_s + tmp <= (char *)leaf_s + XFS_LBSIZE(mp)); in xfs_dir_leaf_moveents()
1879 ASSERT((char *)entry_s + tmp <= (char *)leaf_s + XFS_LBSIZE(mp)); in xfs_dir_leaf_moveents()
1984 ((char *)namest >= (char *)leaf + XFS_LBSIZE(mp)))) { in xfs_dir_leaf_getdents_int()
2047 ((char *)namest >= (char *)leaf + XFS_LBSIZE(mp)))) { in xfs_dir_leaf_getdents_int()