Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
fscache.h File Reference
#include <linux/fs.h>
#include <linux/list.h>
#include <linux/pagemap.h>
#include <linux/pagevec.h>

Go to the source code of this file.

Data Structures

struct  fscache_cookie_def
 
struct  fscache_netfs
 

Macros

#define fscache_available()   (0)
 
#define fscache_cookie_valid(cookie)   (0)
 
#define PageFsCache(page)   PagePrivate2((page))
 
#define SetPageFsCache(page)   SetPagePrivate2((page))
 
#define ClearPageFsCache(page)   ClearPagePrivate2((page))
 
#define TestSetPageFsCache(page)   TestSetPagePrivate2((page))
 
#define TestClearPageFsCache(page)   TestClearPagePrivate2((page))
 
#define FSCACHE_INDEX_DEADFILL_PATTERN   0x79
 
#define FSCACHE_COOKIE_TYPE_INDEX   0
 
#define FSCACHE_COOKIE_TYPE_DATAFILE   1
 

Typedefs

typedef void(* fscache_rw_complete_t )(struct page *page, void *context, int error)
 

Enumerations

enum  fscache_checkaux { FSCACHE_CHECKAUX_OKAY, FSCACHE_CHECKAUX_NEEDS_UPDATE, FSCACHE_CHECKAUX_OBSOLETE }
 

Functions

int __fscache_register_netfs (struct fscache_netfs *)
 
void __fscache_unregister_netfs (struct fscache_netfs *)
 
struct fscache_cache_tag__fscache_lookup_cache_tag (const char *)
 
void __fscache_release_cache_tag (struct fscache_cache_tag *)
 
struct fscache_cookie__fscache_acquire_cookie (struct fscache_cookie *, const struct fscache_cookie_def *, void *)
 
void __fscache_relinquish_cookie (struct fscache_cookie *, int)
 
void __fscache_update_cookie (struct fscache_cookie *)
 
int __fscache_attr_changed (struct fscache_cookie *)
 
int __fscache_read_or_alloc_page (struct fscache_cookie *, struct page *, fscache_rw_complete_t, void *, gfp_t)
 
int __fscache_read_or_alloc_pages (struct fscache_cookie *, struct address_space *, struct list_head *, unsigned *, fscache_rw_complete_t, void *, gfp_t)
 
int __fscache_alloc_page (struct fscache_cookie *, struct page *, gfp_t)
 
int __fscache_write_page (struct fscache_cookie *, struct page *, gfp_t)
 
void __fscache_uncache_page (struct fscache_cookie *, struct page *)
 
bool __fscache_check_page_write (struct fscache_cookie *, struct page *)
 
void __fscache_wait_on_page_write (struct fscache_cookie *, struct page *)
 
bool __fscache_maybe_release_page (struct fscache_cookie *, struct page *, gfp_t)
 
void __fscache_uncache_all_inode_pages (struct fscache_cookie *, struct inode *)
 
: The name of the tag to search for

fscache_lookup_cache_tag - Look up a cache tag

Acquire a specific cache referral tag that can be used to select a specific cache in which to cache an index.

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

Macro Definition Documentation

#define ClearPageFsCache (   page)    ClearPagePrivate2((page))

Definition at line 41 of file fscache.h.

#define fscache_available ( )    (0)

Definition at line 30 of file fscache.h.

#define FSCACHE_COOKIE_TYPE_DATAFILE   1

Definition at line 74 of file fscache.h.

#define FSCACHE_COOKIE_TYPE_INDEX   0

Definition at line 73 of file fscache.h.

#define fscache_cookie_valid (   cookie)    (0)

Definition at line 31 of file fscache.h.

#define FSCACHE_INDEX_DEADFILL_PATTERN   0x79

Definition at line 46 of file fscache.h.

#define PageFsCache (   page)    PagePrivate2((page))

Definition at line 39 of file fscache.h.

#define SetPageFsCache (   page)    SetPagePrivate2((page))

Definition at line 40 of file fscache.h.

#define TestClearPageFsCache (   page)    TestClearPagePrivate2((page))

Definition at line 43 of file fscache.h.

#define TestSetPageFsCache (   page)    TestSetPagePrivate2((page))

Definition at line 42 of file fscache.h.

Typedef Documentation

typedef void(* fscache_rw_complete_t)(struct page *page, void *context, int error)

Definition at line 53 of file fscache.h.

Enumeration Type Documentation

Enumerator:
FSCACHE_CHECKAUX_OKAY 
FSCACHE_CHECKAUX_NEEDS_UPDATE 
FSCACHE_CHECKAUX_OBSOLETE 

Definition at line 58 of file fscache.h.

Function Documentation

struct fscache_cookie* __fscache_acquire_cookie ( struct fscache_cookie ,
const struct fscache_cookie_def ,
void  
)
read

Definition at line 58 of file cookie.c.

int __fscache_alloc_page ( struct fscache_cookie ,
struct page ,
gfp_t   
)

Definition at line 562 of file page.c.

int __fscache_attr_changed ( struct fscache_cookie )

Definition at line 171 of file page.c.

bool __fscache_check_page_write ( struct fscache_cookie ,
struct page  
)

Definition at line 23 of file page.c.

struct fscache_cache_tag* __fscache_lookup_cache_tag ( const char )
read

Definition at line 27 of file cache.c.

bool __fscache_maybe_release_page ( struct fscache_cookie ,
struct page ,
gfp_t   
)

Definition at line 50 of file page.c.

int __fscache_read_or_alloc_page ( struct fscache_cookie ,
struct page ,
fscache_rw_complete_t  ,
void ,
gfp_t   
)

Definition at line 339 of file page.c.

int __fscache_read_or_alloc_pages ( struct fscache_cookie ,
struct address_space ,
struct list_head ,
unsigned *  ,
fscache_rw_complete_t  ,
void ,
gfp_t   
)

Definition at line 456 of file page.c.

int __fscache_register_netfs ( struct fscache_netfs )

Definition at line 22 of file netfs.c.

void __fscache_release_cache_tag ( struct fscache_cache_tag )

Definition at line 73 of file cache.c.

void __fscache_relinquish_cookie ( struct fscache_cookie ,
int   
)

Definition at line 411 of file cookie.c.

void __fscache_uncache_all_inode_pages ( struct fscache_cookie ,
struct inode  
)

Definition at line 962 of file page.c.

void __fscache_uncache_page ( struct fscache_cookie ,
struct page  
)

Definition at line 870 of file page.c.

void __fscache_unregister_netfs ( struct fscache_netfs )

Definition at line 87 of file netfs.c.

void __fscache_update_cookie ( struct fscache_cookie )

Definition at line 375 of file cookie.c.

void __fscache_wait_on_page_write ( struct fscache_cookie ,
struct page  
)

Definition at line 38 of file page.c.

int __fscache_write_page ( struct fscache_cookie ,
struct page ,
gfp_t   
)

Definition at line 747 of file page.c.