#include <linux/slab.h>
#include <linux/mount.h>
#include <linux/xattr.h>
#include <linux/file.h>
#include <linux/falloc.h>
#include <trace/events/fscache.h>
#include "internal.h"
static atomic_t cachefiles_object_debug_id;
static
struct cachefiles_object *cachefiles_alloc_object(struct fscache_cookie *cookie)
{ … }
void cachefiles_see_object(struct cachefiles_object *object,
enum cachefiles_obj_ref_trace why)
{ … }
struct cachefiles_object *cachefiles_grab_object(struct cachefiles_object *object,
enum cachefiles_obj_ref_trace why)
{ … }
void cachefiles_put_object(struct cachefiles_object *object,
enum cachefiles_obj_ref_trace why)
{ … }
static int cachefiles_adjust_size(struct cachefiles_object *object)
{ … }
static bool cachefiles_lookup_cookie(struct fscache_cookie *cookie)
{ … }
static bool cachefiles_shorten_object(struct cachefiles_object *object,
struct file *file, loff_t new_size)
{ … }
static void cachefiles_resize_cookie(struct netfs_cache_resources *cres,
loff_t new_size)
{ … }
static void cachefiles_commit_object(struct cachefiles_object *object,
struct cachefiles_cache *cache)
{ … }
static void cachefiles_clean_up_object(struct cachefiles_object *object,
struct cachefiles_cache *cache)
{ … }
static void cachefiles_withdraw_cookie(struct fscache_cookie *cookie)
{ … }
static bool cachefiles_invalidate_cookie(struct fscache_cookie *cookie)
{ … }
const struct fscache_cache_ops cachefiles_cache_ops = …;