Lines Matching defs:results
154 struct ulfs_lookup_results *results;
194 * Produce the auxiliary lookup results into i_crap. Increment
196 * stale results. This should not be done this way. XXX.
198 results = &dp->i_crap;
265 &results->ulr_offset, &bp, nameiop == DELETE ? &prevoff : NULL)) {
268 (results->ulr_offset & bmask));
271 results->ulr_offset = roundup(dp->i_size, dirblksiz);
280 if (nameiop != LOOKUP || results->ulr_diroff == 0 ||
281 results->ulr_diroff >= dp->i_size) {
283 results->ulr_offset = 0;
286 results->ulr_offset = results->ulr_diroff;
287 if ((entryoffsetinblock = results->ulr_offset & bmask) &&
288 (error = ulfs_blkatoff(vdp, (off_t)results->ulr_offset,
294 prevoff = results->ulr_offset;
299 while (results->ulr_offset < endsearch) {
305 if ((results->ulr_offset & bmask) == 0) {
308 error = ulfs_blkatoff(vdp, (off_t)results->ulr_offset,
336 ulfs_dirbad(dp, results->ulr_offset, "mangled entry");
338 results->ulr_offset += i;
357 slotoffset = results->ulr_offset;
362 slotoffset = results->ulr_offset;
365 slotsize = results->ulr_offset +
392 slotoffset = results->ulr_offset;
394 results->ulr_reclen = slotsize;
397 * results->ulr_endoff,
418 results->ulr_reclen = lfs_dir_getreclen(fs, ep);
422 prevoff = results->ulr_offset;
423 results->ulr_offset += lfs_dir_getreclen(fs, ep);
426 enduseful = results->ulr_offset;
435 results->ulr_offset = 0;
436 endsearch = results->ulr_diroff;
461 * then set results->ulr_count to 0 indicating
464 * can be put in the range from results->ulr_offset to
465 * results->ulr_offset + results->ulr_count.
468 results->ulr_offset = roundup(dp->i_size, dirblksiz);
469 results->ulr_count = 0;
470 enduseful = results->ulr_offset;
472 results->ulr_offset = slotoffset;
473 if ((results->ulr_offset & (dirblksiz - 1)) == 0)
474 results->ulr_count = 0;
476 results->ulr_count =
477 results->ulr_offset - prevoff;
479 results->ulr_offset = slotoffset;
480 results->ulr_count = slotsize;
484 results->ulr_endoff = roundup(enduseful, dirblksiz);
519 if (results->ulr_offset + LFS_DIRSIZ(fs, ep) > dp->i_size) {
520 ulfs_dirbad(dp, results->ulr_offset, "i_size too small");
522 results->ulr_offset + LFS_DIRSIZ(fs, ep);
534 results->ulr_diroff = results->ulr_offset &~ (dirblksiz - 1);
543 * Return pointer to current entry in results->ulr_offset,
545 * is a previous entry in this block) in results->ulr_count.
548 if ((results->ulr_offset & (dirblksiz - 1)) == 0)
549 results->ulr_count = 0;
551 results->ulr_count = results->ulr_offset - prevoff;