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);
157 * We can deduce a value for that from i_disk_size.
925 int from; /* source leaf index */
938 for (from = to = 0, loglow = -1; from < leafhdr->count; from++) {
939 if (leafhdr->ents[from].address ==
945 if (from > to) {
948 leafhdr->ents[to] = leafhdr->ents[from];
955 ASSERT(leafhdr->stale == from - to);
983 int from; /* source copy index */
1009 for (from = to = 0; from < leafhdr->count; from++) {
1013 if (index == from)
1015 if (from != keepstale &&
1016 ents[from].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) {
1017 if (from == to)
1024 if (from == keepstale)
1029 if (from > to)
1030 ents[to] = ents[from];
1033 ASSERT(from > to);
1038 if (index == from)
1044 leafhdr->count -= from - to;
1060 * Log the bests entries indicated from a leaf1 block.
1086 * Log the leaf entries indicated from a leaf1 or leafn block.
1342 * Remove an entry from a leaf format directory.
1517 * Point to the leaf entry, get data address from it.
1549 xfs_dahash_t hash=0; /* hash from this entry */
1644 * Eliminate the last bests entry from the table.
1782 * Set up the leaf tail from the freespace block.
1819 * eliminate it from the path.