Lines Matching refs:pos
88 loff_t pos = 0; in vxfs_find_entry() local
91 while (pos < limit) { in vxfs_find_entry()
94 int pg_ofs = pos & ~PAGE_MASK; in vxfs_find_entry()
96 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); in vxfs_find_entry()
101 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_find_entry()
104 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry()
107 (kaddr + (pos & ~PAGE_MASK)); in vxfs_find_entry()
110 pos += overhead; in vxfs_find_entry()
116 pos += bsize - 1; in vxfs_find_entry()
117 pos &= ~(bsize - 1); in vxfs_find_entry()
122 pos += fs16_to_cpu(sbi, de->d_reclen); in vxfs_find_entry()
220 loff_t pos, limit; in vxfs_readdir() local
223 if (ctx->pos == 0) { in vxfs_readdir()
226 ctx->pos++; in vxfs_readdir()
228 if (ctx->pos == 1) { in vxfs_readdir()
231 ctx->pos++; in vxfs_readdir()
235 if (ctx->pos > limit) in vxfs_readdir()
238 pos = ctx->pos & ~3L; in vxfs_readdir()
240 while (pos < limit) { in vxfs_readdir()
243 int pg_ofs = pos & ~PAGE_MASK; in vxfs_readdir()
246 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); in vxfs_readdir()
252 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_readdir()
255 if ((pos & (bsize - 1)) < 4) { in vxfs_readdir()
258 (kaddr + (pos & ~PAGE_MASK)); in vxfs_readdir()
261 pos += overhead; in vxfs_readdir()
267 pos += bsize - 1; in vxfs_readdir()
268 pos &= ~(bsize - 1); in vxfs_readdir()
273 pos += fs16_to_cpu(sbi, de->d_reclen); in vxfs_readdir()
283 pos -= fs16_to_cpu(sbi, de->d_reclen); in vxfs_readdir()
292 ctx->pos = pos | 2; in vxfs_readdir()