Lines Matching refs:frag
250 unsigned frag = fpos_frag(ctx->pos); in ceph_readdir() local
256 dout("readdir %p file %p frag %u off %u\n", inode, file, frag, off); in ceph_readdir()
294 frag = fpos_frag(ctx->pos); in ceph_readdir()
319 if (fi->frag != frag || fi->last_readdir == NULL) { in ceph_readdir()
331 ceph_vinop(inode), frag, fi->last_name); in ceph_readdir()
342 req->r_direct_hash = ceph_frag_value(frag); in ceph_readdir()
352 req->r_args.readdir.frag = cpu_to_le32(frag); in ceph_readdir()
363 " on frag %x, end=%d, complete=%d\n", err, frag, in ceph_readdir()
375 if (le32_to_cpu(rinfo->dir_dir->frag) != frag) { in ceph_readdir()
376 frag = le32_to_cpu(rinfo->dir_dir->frag); in ceph_readdir()
377 if (ceph_frag_is_leftmost(frag)) in ceph_readdir()
383 fi->frag = frag; in ceph_readdir()
390 if (ceph_frag_is_rightmost(frag)) in ceph_readdir()
405 dout("readdir frag %x num %d off %d chunkoff %d\n", frag, in ceph_readdir()
408 ctx->pos = ceph_make_fpos(frag, off); in ceph_readdir()
442 if (!ceph_frag_is_rightmost(frag)) { in ceph_readdir()
443 frag = ceph_frag_next(frag); in ceph_readdir()
445 ctx->pos = ceph_make_fpos(frag, off); in ceph_readdir()
446 dout("readdir next frag is %x\n", frag); in ceph_readdir()
471 static void reset_readdir(struct ceph_file_info *fi, unsigned frag) in reset_readdir() argument
479 if (ceph_frag_is_leftmost(frag)) in reset_readdir()
494 loff_t old_offset = ceph_make_fpos(fi->frag, fi->next_offset); in ceph_dir_llseek()
524 fpos_frag(offset) != fi->frag || in ceph_dir_llseek()