Lines Matching defs:from

38 	struct xfs_dir2_leaf		*from)
41 struct xfs_dir3_leaf *from3 = (struct xfs_dir3_leaf *)from;
53 to->forw = be32_to_cpu(from->hdr.info.forw);
54 to->back = be32_to_cpu(from->hdr.info.back);
55 to->magic = be16_to_cpu(from->hdr.info.magic);
56 to->count = be16_to_cpu(from->hdr.count);
57 to->stale = be16_to_cpu(from->hdr.stale);
58 to->ents = from->__ents;
69 struct xfs_dir3_icleaf_hdr *from)
74 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC ||
75 from->magic == XFS_DIR3_LEAFN_MAGIC);
77 to3->hdr.info.hdr.forw = cpu_to_be32(from->forw);
78 to3->hdr.info.hdr.back = cpu_to_be32(from->back);
79 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic);
80 to3->hdr.count = cpu_to_be16(from->count);
81 to3->hdr.stale = cpu_to_be16(from->stale);
83 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC ||
84 from->magic == XFS_DIR2_LEAFN_MAGIC);
86 to->hdr.info.forw = cpu_to_be32(from->forw);
87 to->hdr.info.back = cpu_to_be32(from->back);
88 to->hdr.info.magic = cpu_to_be16(from->magic);
89 to->hdr.count = cpu_to_be16(from->count);
90 to->hdr.stale = cpu_to_be16(from->stale);
154 * We can deduce a value for that from di_size.
916 int from; /* source leaf index */
929 for (from = to = 0, loglow = -1; from < leafhdr->count; from++) {
930 if (leafhdr->ents[from].address ==
936 if (from > to) {
939 leafhdr->ents[to] = leafhdr->ents[from];
946 ASSERT(leafhdr->stale == from - to);
974 int from; /* source copy index */
1000 for (from = to = 0; from < leafhdr->count; from++) {
1004 if (index == from)
1006 if (from != keepstale &&
1007 ents[from].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) {
1008 if (from == to)
1015 if (from == keepstale)
1020 if (from > to)
1021 ents[to] = ents[from];
1024 ASSERT(from > to);
1029 if (index == from)
1035 leafhdr->count -= from - to;
1051 * Log the bests entries indicated from a leaf1 block.
1077 * Log the leaf entries indicated from a leaf1 or leafn block.
1333 * Remove an entry from a leaf format directory.
1508 * Point to the leaf entry, get data address from it.
1540 xfs_dahash_t hash=0; /* hash from this entry */
1635 * Eliminate the last bests entry from the table.
1773 * Set up the leaf tail from the freespace block.
1810 * eliminate it from the path.