Lines Matching refs:pos
155 while (ctx->pos < inode->i_size) { in ext4_readdir()
163 offset = ctx->pos & (sb->s_blocksize - 1); in ext4_readdir()
164 map.m_lblk = ctx->pos >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_readdir()
172 ctx->pos += map.m_len * sb->s_blocksize; in ext4_readdir()
194 if (ctx->pos > inode->i_blocks << 9) in ext4_readdir()
196 ctx->pos += sb->s_blocksize - offset; in ext4_readdir()
205 (unsigned long long)ctx->pos); in ext4_readdir()
206 ctx->pos += sb->s_blocksize - offset; in ext4_readdir()
234 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ext4_readdir()
239 while (ctx->pos < inode->i_size in ext4_readdir()
248 ctx->pos = (ctx->pos | in ext4_readdir()
281 ctx->pos += ext4_rec_len_from_disk(de->rec_len, in ext4_readdir()
284 if ((ctx->pos < inode->i_size) && !dir_relax_shared(inode)) in ext4_readdir()
325 static inline __u32 pos2maj_hash(struct file *filp, loff_t pos) in pos2maj_hash() argument
329 return (pos << 1) & 0xffffffff; in pos2maj_hash()
331 return ((pos >> 32) << 1) & 0xffffffff; in pos2maj_hash()
334 static inline __u32 pos2min_hash(struct file *filp, loff_t pos) in pos2min_hash() argument
340 return pos & 0xffffffff; in pos2min_hash()
417 loff_t pos) in ext4_htree_create_dir_info() argument
424 p->curr_hash = pos2maj_hash(filp, pos); in ext4_htree_create_dir_info()
425 p->curr_minor_hash = pos2min_hash(filp, pos); in ext4_htree_create_dir_info()
518 ctx->pos = hash2pos(file, fname->hash, fname->minor_hash); in call_filldir()
540 info = ext4_htree_create_dir_info(file, ctx->pos); in ext4_dx_readdir()
546 if (ctx->pos == ext4_get_htree_eof(file)) in ext4_dx_readdir()
550 if (info->last_pos != ctx->pos) { in ext4_dx_readdir()
554 info->curr_hash = pos2maj_hash(file, ctx->pos); in ext4_dx_readdir()
555 info->curr_minor_hash = pos2min_hash(file, ctx->pos); in ext4_dx_readdir()
587 ctx->pos = ext4_get_htree_eof(file); in ext4_dx_readdir()
607 ctx->pos = ext4_get_htree_eof(file); in ext4_dx_readdir()
615 info->last_pos = ctx->pos; in ext4_dx_readdir()