Lines Matching refs:ff
117 struct fuse_file *ff = file->private_data; in fuse_emit() local
119 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_emit()
365 struct fuse_file *ff = file->private_data; in fuse_readdir_uncached() local
367 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_readdir_uncached()
390 static enum fuse_parse_result fuse_parse_cache(struct fuse_file *ff, in fuse_parse_cache() argument
394 unsigned int offset = ff->readdir.cache_off & ~PAGE_MASK; in fuse_parse_cache()
416 if (ff->readdir.pos == ctx->pos) { in fuse_parse_cache()
423 ff->readdir.pos = dirent->off; in fuse_parse_cache()
424 ff->readdir.cache_off += reclen; in fuse_parse_cache()
446 struct fuse_file *ff = file->private_data; in fuse_readdir_cached() local
457 if (ff->readdir.pos != ctx->pos) { in fuse_readdir_cached()
458 ff->readdir.pos = 0; in fuse_readdir_cached()
459 ff->readdir.cache_off = 0; in fuse_readdir_cached()
502 if (ff->readdir.version != fi->rdc.version) { in fuse_readdir_cached()
503 ff->readdir.pos = 0; in fuse_readdir_cached()
504 ff->readdir.cache_off = 0; in fuse_readdir_cached()
510 if (ff->readdir.pos == 0) in fuse_readdir_cached()
511 ff->readdir.version = fi->rdc.version; in fuse_readdir_cached()
513 WARN_ON(fi->rdc.size < ff->readdir.cache_off); in fuse_readdir_cached()
515 index = ff->readdir.cache_off >> PAGE_SHIFT; in fuse_readdir_cached()
524 if ((ff->readdir.cache_off & ~PAGE_MASK) == size) in fuse_readdir_cached()
540 if (fi->rdc.version == ff->readdir.version) in fuse_readdir_cached()
546 if (ff->readdir.version != fi->rdc.version) { in fuse_readdir_cached()
559 res = fuse_parse_cache(ff, addr, size, ctx); in fuse_readdir_cached()
572 ff->readdir.cache_off = ALIGN(ff->readdir.cache_off, PAGE_SIZE); in fuse_readdir_cached()
586 struct fuse_file *ff = file->private_data; in fuse_readdir() local
593 mutex_lock(&ff->readdir.lock); in fuse_readdir()
596 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_readdir()
601 mutex_unlock(&ff->readdir.lock); in fuse_readdir()