Lines Matching refs:pos

142 	offset = ctx->pos & (sb->s_blocksize - 1);  in ext4_readdir()
144 while (ctx->pos < inode->i_size) { in ext4_readdir()
147 map.m_lblk = ctx->pos >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_readdir()
169 (unsigned long long) ctx->pos); in ext4_readdir()
173 if (ctx->pos > inode->i_blocks << 9) in ext4_readdir()
175 ctx->pos += sb->s_blocksize - offset; in ext4_readdir()
185 (unsigned long long)ctx->pos); in ext4_readdir()
186 ctx->pos += sb->s_blocksize - offset; in ext4_readdir()
214 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ext4_readdir()
219 while (ctx->pos < inode->i_size in ext4_readdir()
228 ctx->pos = (ctx->pos | in ext4_readdir()
257 ctx->pos += ext4_rec_len_from_disk(de->rec_len, in ext4_readdir()
260 if ((ctx->pos < inode->i_size) && !dir_relax(inode)) in ext4_readdir()
303 static inline __u32 pos2maj_hash(struct file *filp, loff_t pos) in pos2maj_hash() argument
307 return (pos << 1) & 0xffffffff; in pos2maj_hash()
309 return ((pos >> 32) << 1) & 0xffffffff; in pos2maj_hash()
312 static inline __u32 pos2min_hash(struct file *filp, loff_t pos) in pos2min_hash() argument
318 return pos & 0xffffffff; in pos2min_hash()
393 loff_t pos) in ext4_htree_create_dir_info() argument
400 p->curr_hash = pos2maj_hash(filp, pos); in ext4_htree_create_dir_info()
401 p->curr_minor_hash = pos2min_hash(filp, pos); in ext4_htree_create_dir_info()
494 ctx->pos = hash2pos(file, fname->hash, fname->minor_hash); in call_filldir()
516 info = ext4_htree_create_dir_info(file, ctx->pos); in ext4_dx_readdir()
522 if (ctx->pos == ext4_get_htree_eof(file)) in ext4_dx_readdir()
526 if (info->last_pos != ctx->pos) { in ext4_dx_readdir()
530 info->curr_hash = pos2maj_hash(file, ctx->pos); in ext4_dx_readdir()
531 info->curr_minor_hash = pos2min_hash(file, ctx->pos); in ext4_dx_readdir()
563 ctx->pos = ext4_get_htree_eof(file); in ext4_dx_readdir()
583 ctx->pos = ext4_get_htree_eof(file); in ext4_dx_readdir()
591 info->last_pos = ctx->pos; in ext4_dx_readdir()