Lines Matching full:pos
64 loff_t pos = 0; in vxfs_find_entry() local
67 while (pos < limit) { in vxfs_find_entry()
70 int pg_ofs = pos & ~PAGE_MASK; in vxfs_find_entry()
72 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); in vxfs_find_entry()
77 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_find_entry()
80 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry()
83 (kaddr + (pos & ~PAGE_MASK)); in vxfs_find_entry()
86 pos += overhead; in vxfs_find_entry()
92 pos += bsize - 1; in vxfs_find_entry()
93 pos &= ~(bsize - 1); in vxfs_find_entry()
98 pos += fs16_to_cpu(sbi, de->d_reclen); in vxfs_find_entry()
195 loff_t pos, limit; in vxfs_readdir() local
198 if (ctx->pos == 0) { in vxfs_readdir()
201 ctx->pos++; in vxfs_readdir()
203 if (ctx->pos == 1) { in vxfs_readdir()
206 ctx->pos++; in vxfs_readdir()
210 if (ctx->pos > limit) in vxfs_readdir()
213 pos = ctx->pos & ~3L; in vxfs_readdir()
215 while (pos < limit) { in vxfs_readdir()
218 int pg_ofs = pos & ~PAGE_MASK; in vxfs_readdir()
221 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); in vxfs_readdir()
227 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_readdir()
230 if ((pos & (bsize - 1)) < 4) { in vxfs_readdir()
233 (kaddr + (pos & ~PAGE_MASK)); in vxfs_readdir()
236 pos += overhead; in vxfs_readdir()
242 pos += bsize - 1; in vxfs_readdir()
243 pos &= ~(bsize - 1); in vxfs_readdir()
248 pos += fs16_to_cpu(sbi, de->d_reclen); in vxfs_readdir()
257 /* the dir entry was not read, fix pos. */ in vxfs_readdir()
258 pos -= fs16_to_cpu(sbi, de->d_reclen); in vxfs_readdir()
267 ctx->pos = pos | 2; in vxfs_readdir()