Lines Matching refs:pos

113 	offset = ctx->pos & (sb->s_blocksize - 1);  in ext3_readdir()
115 while (ctx->pos < inode->i_size) { in ext3_readdir()
116 unsigned long blk = ctx->pos >> EXT3_BLOCK_SIZE_BITS(sb); in ext3_readdir()
142 inode->i_ino, ctx->pos); in ext3_readdir()
146 if (ctx->pos > inode->i_blocks << 9) in ext3_readdir()
148 ctx->pos += sb->s_blocksize - offset; in ext3_readdir()
172 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ext3_readdir()
177 while (ctx->pos < inode->i_size in ext3_readdir()
184 ctx->pos = (ctx->pos | in ext3_readdir()
197 ctx->pos += ext3_rec_len_from_disk(de->rec_len); in ext3_readdir()
201 if (ctx->pos < inode->i_size) in ext3_readdir()
235 static inline __u32 pos2maj_hash(struct file *filp, loff_t pos) in pos2maj_hash() argument
239 return (pos << 1) & 0xffffffff; in pos2maj_hash()
241 return ((pos >> 32) << 1) & 0xffffffff; in pos2maj_hash()
244 static inline __u32 pos2min_hash(struct file *filp, loff_t pos) in pos2min_hash() argument
250 return pos & 0xffffffff; in pos2min_hash()
325 loff_t pos) in ext3_htree_create_dir_info() argument
332 p->curr_hash = pos2maj_hash(filp, pos); in ext3_htree_create_dir_info()
333 p->curr_minor_hash = pos2min_hash(filp, pos); in ext3_htree_create_dir_info()
419 ctx->pos = hash2pos(file, fname->hash, fname->minor_hash); in call_filldir()
440 info = ext3_htree_create_dir_info(file, ctx->pos); in ext3_dx_readdir()
446 if (ctx->pos == ext3_get_htree_eof(file)) in ext3_dx_readdir()
450 if (info->last_pos != ctx->pos) { in ext3_dx_readdir()
454 info->curr_hash = pos2maj_hash(file, ctx->pos); in ext3_dx_readdir()
455 info->curr_minor_hash = pos2min_hash(file, ctx->pos); in ext3_dx_readdir()
487 ctx->pos = ext3_get_htree_eof(file); in ext3_dx_readdir()
507 ctx->pos = ext3_get_htree_eof(file); in ext3_dx_readdir()
515 info->last_pos = ctx->pos; in ext3_dx_readdir()