Lines Matching refs:entries
981 /* Copy the entries */
1121 * compare_dents - compare directory entries by hash value
1125 * When comparing the hash entries of @a to @b:
1163 * do_filldir_main - read out directory entries
1167 * @filldir: The function to pass entries to
1169 * @entries: the number of entries in darr
1182 const struct gfs2_dirent **darr, u32 entries,
1191 sort(darr, entries, sizeof(struct gfs2_dirent *), compare_dents, NULL);
1197 for (x = 0, y = 1; x < entries; x++, y++) {
1201 if (y < entries) {
1268 unsigned entries = 0, entries2 = 0;
1284 entries += be16_to_cpu(lf->lf_entries);
1290 if (!entries)
1295 * The extra 99 entries are not normally used, but are a buffer
1296 * zone in case the number of entries in the leaf is corrupt.
1297 * 99 is the maximum number of entries that can fit in a single
1300 larr = gfs2_alloc_sort_buffer((leaves + entries + 99) * sizeof(void *));
1322 fs_warn(sdp, "Number of entries corrupt in dir "
1338 BUG_ON(entries2 != entries);
1340 entries, copied);
1350 * dir_e_read - Reads the entries from a directory into a filldir buffer
1457 fs_warn(sdp, "Number of entries corrupt in dir %llu, "
1696 u16 entries = be16_to_cpu(leaf->lf_entries);
1697 if (!entries)
1699 leaf->lf_entries = cpu_to_be16(--entries);