Lines Matching refs:hdr_d
1031 xfs_dir_leaf_hdr_t *hdr_s, *hdr_d; in xfs_dir_leaf_compact() local
1060 hdr_d = &leaf_d->hdr; in xfs_dir_leaf_compact()
1061 hdr_d->info = hdr_s->info; /* struct copy */ in xfs_dir_leaf_compact()
1062 INT_SET(hdr_d->firstused, ARCH_CONVERT, lbsize); in xfs_dir_leaf_compact()
1063 if (INT_ISZERO(hdr_d->firstused, ARCH_CONVERT)) in xfs_dir_leaf_compact()
1064 INT_SET(hdr_d->firstused, ARCH_CONVERT, lbsize - 1); in xfs_dir_leaf_compact()
1065 INT_ZERO(hdr_d->namebytes, ARCH_CONVERT); in xfs_dir_leaf_compact()
1066 INT_ZERO(hdr_d->count, ARCH_CONVERT); in xfs_dir_leaf_compact()
1067 hdr_d->holes = 0; in xfs_dir_leaf_compact()
1068 INT_SET(hdr_d->freemap[0].base, ARCH_CONVERT, sizeof(xfs_dir_leaf_hdr_t)); in xfs_dir_leaf_compact()
1069 …INT_SET(hdr_d->freemap[0].size, ARCH_CONVERT, INT_GET(hdr_d->firstused, ARCH_CONVERT) - INT_GET(hd… in xfs_dir_leaf_compact()
1078 if (musthave && INT_GET(hdr_d->freemap[0].size, ARCH_CONVERT) < musthave) in xfs_dir_leaf_compact()
1790 xfs_dir_leaf_hdr_t *hdr_s, *hdr_d; in xfs_dir_leaf_moveents() local
1806 hdr_d = &leaf_d->hdr; in xfs_dir_leaf_moveents()
1810 ASSERT(INT_GET(hdr_d->count, ARCH_CONVERT) < (XFS_LBSIZE(mp)/8)); in xfs_dir_leaf_moveents()
1811 ASSERT(INT_GET(hdr_d->firstused, ARCH_CONVERT) >= in xfs_dir_leaf_moveents()
1812 ((INT_GET(hdr_d->count, ARCH_CONVERT)*sizeof(*entry_d))+sizeof(*hdr_d))); in xfs_dir_leaf_moveents()
1815 ASSERT(start_d <= INT_GET(hdr_d->count, ARCH_CONVERT)); in xfs_dir_leaf_moveents()
1821 if (start_d < INT_GET(hdr_d->count, ARCH_CONVERT)) { in xfs_dir_leaf_moveents()
1822 tmp = INT_GET(hdr_d->count, ARCH_CONVERT) - start_d; in xfs_dir_leaf_moveents()
1838 INT_MOD(hdr_d->firstused, ARCH_CONVERT, -(tmp)); in xfs_dir_leaf_moveents()
1840 INT_COPY(entry_d->nameidx, hdr_d->firstused, ARCH_CONVERT); in xfs_dir_leaf_moveents()
1849 INT_MOD(hdr_d->namebytes, ARCH_CONVERT, entry_d->namelen); in xfs_dir_leaf_moveents()
1851 INT_MOD(hdr_d->count, ARCH_CONVERT, +1); in xfs_dir_leaf_moveents()
1852 tmp = INT_GET(hdr_d->count, ARCH_CONVERT) * (uint)sizeof(xfs_dir_leaf_entry_t) in xfs_dir_leaf_moveents()
1854 ASSERT(INT_GET(hdr_d->firstused, ARCH_CONVERT) >= tmp); in xfs_dir_leaf_moveents()
1886 INT_SET(hdr_d->freemap[0].base, ARCH_CONVERT, (uint)sizeof(xfs_dir_leaf_hdr_t)); in xfs_dir_leaf_moveents()
1887 …INT_MOD(hdr_d->freemap[0].base, ARCH_CONVERT, INT_GET(hdr_d->count, ARCH_CONVERT) * (uint)sizeof(x… in xfs_dir_leaf_moveents()
1888 …INT_SET(hdr_d->freemap[0].size, ARCH_CONVERT, INT_GET(hdr_d->firstused, ARCH_CONVERT) - INT_GET(hd… in xfs_dir_leaf_moveents()
1889 INT_SET(hdr_d->freemap[1].base, ARCH_CONVERT, INT_ZERO(hdr_d->freemap[2].base, ARCH_CONVERT)); in xfs_dir_leaf_moveents()
1890 INT_SET(hdr_d->freemap[1].size, ARCH_CONVERT, INT_ZERO(hdr_d->freemap[2].size, ARCH_CONVERT)); in xfs_dir_leaf_moveents()