Lines Matching refs:f_pos
53 u32 f_pos;
58 pr_debug("AFFS: readdir(ino=%lu,f_pos=%lx)\n",inode->i_ino,(unsigned long)filp->f_pos);
64 f_pos = filp->f_pos;
66 if (f_pos == 0) {
68 if (filldir(dirent, ".", 1, f_pos, inode->i_ino, DT_DIR) < 0)
70 filp->f_pos = f_pos = 1;
73 if (f_pos == 1) {
74 if (filldir(dirent, "..", 2, f_pos, parent_ino(filp->f_path.dentry), DT_DIR) < 0)
76 filp->f_pos = f_pos = 2;
81 chain_pos = (f_pos - 2) & 0xffff;
82 hash_pos = (f_pos - 2) >> 16;
87 filp->f_pos = ((hash_pos << 16) | chain_pos) + 2;
121 f_pos = (hash_pos << 16) + 2;
132 pr_debug("AFFS: readdir(): filldir(\"%.*s\", ino=%u), hash=%d, f_pos=%x\n",
133 namelen, name, ino, hash_pos, f_pos);
134 if (filldir(dirent, name, namelen, f_pos, ino, DT_UNKNOWN) < 0)
137 f_pos++;
144 filp->f_pos = f_pos;