Lines Matching refs:od
62 struct orangefs_dir *od, struct dentry *dentry,
76 op->upcall.req.readdir.token = od->token;
83 od->error = bufi;
100 od->error = r;
107 od->error = r;
111 od->error = op->downcall.status;
121 od->error = -EIO;
127 od->token = resp->token;
131 static int parse_readdir(struct orangefs_dir *od,
138 part = od->part;
151 if (!od->part)
152 od->part = new;
156 od->end = count << PART_SHIFT;
162 struct orangefs_dir *od, struct dentry *dentry)
169 od->error = -ENOMEM;
172 r = do_readdir(oi, od, dentry, op);
174 od->error = r;
177 r = parse_readdir(od, op);
179 od->error = r;
183 od->error = 0;
186 return od->error;
242 struct orangefs_dir *od, struct dentry *dentry,
250 part = od->part;
257 od->error = -EIO;
265 od->error = r;
285 struct orangefs_dir *od = file->private_data;
290 if (!whence && offset < od->end) {
291 struct orangefs_dir_part *part = od->part;
297 od->token = ORANGEFS_ITERATE_START;
298 od->part = NULL;
299 od->end = 1 << PART_SHIFT;
308 struct orangefs_dir *od;
314 od = file->private_data;
316 if (od->error)
317 return od->error;
343 while (od->token != ORANGEFS_ITERATE_END &&
344 ctx->pos > od->end) {
345 r = orangefs_dir_more(oi, od, dentry);
349 if (od->token == ORANGEFS_ITERATE_END && ctx->pos > od->end)
353 if (ctx->pos < od->end) {
354 r = orangefs_dir_fill(oi, od, dentry, ctx);
360 if (od->token != ORANGEFS_ITERATE_END) {
361 r = orangefs_dir_more(oi, od, dentry);
364 r = orangefs_dir_fill(oi, od, dentry, ctx);
372 struct orangefs_dir *od;
377 od = file->private_data;
378 od->token = ORANGEFS_ITERATE_START;
379 od->part = NULL;
380 od->end = 1 << PART_SHIFT;
381 od->error = 0;
387 struct orangefs_dir *od = file->private_data;
388 struct orangefs_dir_part *part = od->part;
394 kfree(od);