Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cache.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include "internal.h"

Go to the source code of this file.

Macros

#define FSCACHE_DEBUG_LEVEL   CACHE
 

Functions

 LIST_HEAD (fscache_cache_list)
 
 DECLARE_RWSEM (fscache_addremove_sem)
 
 DECLARE_WAIT_QUEUE_HEAD (fscache_cache_cleared_wq)
 
 EXPORT_SYMBOL (fscache_cache_cleared_wq)
 
struct fscache_cache_tag__fscache_lookup_cache_tag (const char *name)
 
void __fscache_release_cache_tag (struct fscache_cache_tag *tag)
 
struct fscache_cachefscache_select_cache_for_object (struct fscache_cookie *cookie)
 
void fscache_init_cache (struct fscache_cache *cache, const struct fscache_cache_ops *ops, const char *idfmt,...)
 
 EXPORT_SYMBOL (fscache_init_cache)
 
int fscache_add_cache (struct fscache_cache *cache, struct fscache_object *ifsdef, const char *tagname)
 
 EXPORT_SYMBOL (fscache_add_cache)
 
void fscache_io_error (struct fscache_cache *cache)
 
 EXPORT_SYMBOL (fscache_io_error)
 
void fscache_withdraw_cache (struct fscache_cache *cache)
 
 EXPORT_SYMBOL (fscache_withdraw_cache)
 

Macro Definition Documentation

#define FSCACHE_DEBUG_LEVEL   CACHE

Definition at line 12 of file cache.c.

Function Documentation

struct fscache_cache_tag* __fscache_lookup_cache_tag ( const char name)
read

Definition at line 27 of file cache.c.

void __fscache_release_cache_tag ( struct fscache_cache_tag tag)

Definition at line 73 of file cache.c.

DECLARE_RWSEM ( fscache_addremove_sem  )
DECLARE_WAIT_QUEUE_HEAD ( fscache_cache_cleared_wq  )
EXPORT_SYMBOL ( fscache_cache_cleared_wq  )
EXPORT_SYMBOL ( fscache_init_cache  )
EXPORT_SYMBOL ( fscache_add_cache  )
EXPORT_SYMBOL ( fscache_io_error  )
EXPORT_SYMBOL ( fscache_withdraw_cache  )
int fscache_add_cache ( struct fscache_cache cache,
struct fscache_object ifsdef,
const char tagname 
)

fscache_add_cache - Declare a cache as being open for business : The record describing the cache : The record of the cache object describing the top-level index : The tag describing this cache

Add a cache to the system, making it available for netfs's to use.

See Documentation/filesystems/caching/backend-api.txt for a complete description.

Definition at line 217 of file cache.c.

void fscache_init_cache ( struct fscache_cache cache,
const struct fscache_cache_ops ops,
const char idfmt,
  ... 
)

fscache_init_cache - Initialise a cache record : The cache record to be initialised : The cache operations to be installed in that record : Format string to define identifier ..: sprintf-style arguments

Initialise a record of a cache and fill in the name.

See Documentation/filesystems/caching/backend-api.txt for a complete description.

Definition at line 182 of file cache.c.

void fscache_io_error ( struct fscache_cache cache)

fscache_io_error - Note a cache I/O error : The record describing the cache

Note that an I/O error occurred in a cache and that it should no longer be used for anything. This also reports the error into the kernel log.

See Documentation/filesystems/caching/backend-api.txt for a complete description.

Definition at line 315 of file cache.c.

struct fscache_cache* fscache_select_cache_for_object ( struct fscache_cookie cookie)
read

Definition at line 94 of file cache.c.

void fscache_withdraw_cache ( struct fscache_cache cache)

fscache_withdraw_cache - Withdraw a cache from the active service : The record describing the cache

Withdraw a cache from service, unbinding all its cache objects from the netfs cookies they're currently representing.

See Documentation/filesystems/caching/backend-api.txt for a complete description.

Definition at line 364 of file cache.c.

LIST_HEAD ( fscache_cache_list  )