Lines Matching defs:pos
194 dout("__dcache_readdir %p v%u at %llx\n", dir, (unsigned)shared_gen, ctx->pos);
197 if (ctx->pos > 2) {
214 if (fpos_cmp(di->offset, ctx->pos) < 0) {
253 if (fpos_cmp(ctx->pos, di->offset) <= 0) {
262 ctx->pos = di->offset;
270 ctx->pos++;
298 static bool need_send_readdir(struct ceph_dir_file_info *dfi, loff_t pos)
302 if (is_hash_order(pos))
303 return !ceph_frag_contains_value(dfi->frag, fpos_hash(pos));
305 return dfi->frag != fpos_frag(pos);
320 dout("readdir %p file %p pos %llx\n", inode, file, ctx->pos);
325 if (ctx->pos == 0) {
330 ctx->pos = 1;
332 if (ctx->pos == 1) {
343 ctx->pos = 2;
373 if (need_send_readdir(dfi, ctx->pos)) {
384 if (is_hash_order(ctx->pos)) {
388 frag = ceph_choose_frag(ci, fpos_hash(ctx->pos),
391 frag = fpos_frag(ctx->pos);
428 } else if (is_hash_order(ctx->pos)) {
430 cpu_to_le32(fpos_hash(ctx->pos));
461 /* adjust ctx->pos to beginning of frag */
462 ctx->pos = ceph_make_fpos(frag,
511 dout("readdir frag %x num %d pos %llx chunk first %llx\n",
512 dfi->frag, rinfo->dir_nr, ctx->pos,
521 if (rinfo->dir_entries[i + step].offset < ctx->pos) {
532 if (rde->offset < ctx->pos) {
533 pr_warn("%s: rde->offset 0x%llx ctx->pos 0x%llx\n",
534 __func__, rde->offset, ctx->pos);
541 ctx->pos = rde->offset;
543 i, rinfo->dir_nr, ctx->pos,
560 ctx->pos++;
574 if (is_hash_order(ctx->pos)) {
577 if (new_pos > ctx->pos)
578 ctx->pos = new_pos;
581 ctx->pos = ceph_make_fpos(frag, dfi->next_offset,