Lines Matching refs:ff

115 	struct fuse_file *ff = file->private_data;  in fuse_emit()  local
117 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_emit()
355 struct fuse_file *ff = file->private_data; in fuse_readdir_uncached() local
357 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_readdir_uncached()
380 static enum fuse_parse_result fuse_parse_cache(struct fuse_file *ff, in fuse_parse_cache() argument
384 unsigned int offset = ff->readdir.cache_off & ~PAGE_MASK; in fuse_parse_cache()
406 if (ff->readdir.pos == ctx->pos) { in fuse_parse_cache()
413 ff->readdir.pos = dirent->off; in fuse_parse_cache()
414 ff->readdir.cache_off += reclen; in fuse_parse_cache()
436 struct fuse_file *ff = file->private_data; in fuse_readdir_cached() local
447 if (ff->readdir.pos != ctx->pos) { in fuse_readdir_cached()
448 ff->readdir.pos = 0; in fuse_readdir_cached()
449 ff->readdir.cache_off = 0; in fuse_readdir_cached()
492 if (ff->readdir.version != fi->rdc.version) { in fuse_readdir_cached()
493 ff->readdir.pos = 0; in fuse_readdir_cached()
494 ff->readdir.cache_off = 0; in fuse_readdir_cached()
500 if (ff->readdir.pos == 0) in fuse_readdir_cached()
501 ff->readdir.version = fi->rdc.version; in fuse_readdir_cached()
503 WARN_ON(fi->rdc.size < ff->readdir.cache_off); in fuse_readdir_cached()
505 index = ff->readdir.cache_off >> PAGE_SHIFT; in fuse_readdir_cached()
514 if ((ff->readdir.cache_off & ~PAGE_MASK) == size) in fuse_readdir_cached()
524 if (fi->rdc.version == ff->readdir.version) in fuse_readdir_cached()
530 if (ff->readdir.version != fi->rdc.version) { in fuse_readdir_cached()
543 res = fuse_parse_cache(ff, addr, size, ctx); in fuse_readdir_cached()
556 ff->readdir.cache_off = ALIGN(ff->readdir.cache_off, PAGE_SIZE); in fuse_readdir_cached()
570 struct fuse_file *ff = file->private_data; in fuse_readdir() local
577 mutex_lock(&ff->readdir.lock); in fuse_readdir()
580 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_readdir()
585 mutex_unlock(&ff->readdir.lock); in fuse_readdir()