Lines Matching refs:frag
261 unsigned frag = fpos_frag(ctx->pos); in ceph_readdir() local
267 dout("readdir %p file %p frag %u off %u\n", inode, file, frag, off); in ceph_readdir()
304 frag = fpos_frag(ctx->pos); in ceph_readdir()
313 if (fi->frag != frag || fi->last_readdir == NULL) { in ceph_readdir()
325 ceph_vinop(inode), frag, fi->last_name); in ceph_readdir()
336 req->r_direct_hash = ceph_frag_value(frag); in ceph_readdir()
349 req->r_args.readdir.frag = cpu_to_le32(frag); in ceph_readdir()
360 " on frag %x, end=%d, complete=%d\n", err, frag, in ceph_readdir()
367 if (le32_to_cpu(rinfo->dir_dir->frag) != frag) { in ceph_readdir()
368 frag = le32_to_cpu(rinfo->dir_dir->frag); in ceph_readdir()
373 fi->frag = frag; in ceph_readdir()
382 } else if (ceph_frag_is_leftmost(frag) && off == 2) { in ceph_readdir()
399 if (ceph_frag_is_rightmost(frag)) in ceph_readdir()
414 dout("readdir frag %x num %d off %d chunkoff %d\n", frag, in ceph_readdir()
417 ctx->pos = ceph_make_fpos(frag, off); in ceph_readdir()
451 if (!ceph_frag_is_rightmost(frag)) { in ceph_readdir()
452 frag = ceph_frag_next(frag); in ceph_readdir()
454 ctx->pos = ceph_make_fpos(frag, off); in ceph_readdir()
455 dout("readdir next frag is %x\n", frag); in ceph_readdir()
486 static void reset_readdir(struct ceph_file_info *fi, unsigned frag) in reset_readdir() argument
496 if (ceph_frag_is_leftmost(frag)) in reset_readdir()
507 loff_t old_offset = ceph_make_fpos(fi->frag, fi->next_offset); in ceph_dir_llseek()
532 fpos_frag(offset) != fi->frag || in ceph_dir_llseek()