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

Go to the source code of this file.

Macros

#define FSCACHE_DEBUG_LEVEL   PAGE
 

Functions

bool __fscache_check_page_write (struct fscache_cookie *cookie, struct page *page)
 
 EXPORT_SYMBOL (__fscache_check_page_write)
 
void __fscache_wait_on_page_write (struct fscache_cookie *cookie, struct page *page)
 
 EXPORT_SYMBOL (__fscache_wait_on_page_write)
 
bool __fscache_maybe_release_page (struct fscache_cookie *cookie, struct page *page, gfp_t gfp)
 
 EXPORT_SYMBOL (__fscache_maybe_release_page)
 
int __fscache_attr_changed (struct fscache_cookie *cookie)
 
 EXPORT_SYMBOL (__fscache_attr_changed)
 
int __fscache_read_or_alloc_page (struct fscache_cookie *cookie, struct page *page, fscache_rw_complete_t end_io_func, void *context, gfp_t gfp)
 
 EXPORT_SYMBOL (__fscache_read_or_alloc_page)
 
int __fscache_read_or_alloc_pages (struct fscache_cookie *cookie, struct address_space *mapping, struct list_head *pages, unsigned *nr_pages, fscache_rw_complete_t end_io_func, void *context, gfp_t gfp)
 
 EXPORT_SYMBOL (__fscache_read_or_alloc_pages)
 
int __fscache_alloc_page (struct fscache_cookie *cookie, struct page *page, gfp_t gfp)
 
 EXPORT_SYMBOL (__fscache_alloc_page)
 
int __fscache_write_page (struct fscache_cookie *cookie, struct page *page, gfp_t gfp)
 
 EXPORT_SYMBOL (__fscache_write_page)
 
void __fscache_uncache_page (struct fscache_cookie *cookie, struct page *page)
 
 EXPORT_SYMBOL (__fscache_uncache_page)
 
void fscache_mark_pages_cached (struct fscache_retrieval *op, struct pagevec *pagevec)
 
 EXPORT_SYMBOL (fscache_mark_pages_cached)
 
void __fscache_uncache_all_inode_pages (struct fscache_cookie *cookie, struct inode *inode)
 
 EXPORT_SYMBOL (__fscache_uncache_all_inode_pages)
 

Macro Definition Documentation

#define FSCACHE_DEBUG_LEVEL   PAGE

Definition at line 12 of file page.c.

Function Documentation

int __fscache_alloc_page ( struct fscache_cookie cookie,
struct page page,
gfp_t  gfp 
)

Definition at line 562 of file page.c.

int __fscache_attr_changed ( struct fscache_cookie cookie)

Definition at line 171 of file page.c.

bool __fscache_check_page_write ( struct fscache_cookie cookie,
struct page page 
)

Definition at line 23 of file page.c.

bool __fscache_maybe_release_page ( struct fscache_cookie cookie,
struct page page,
gfp_t  gfp 
)

Definition at line 50 of file page.c.

int __fscache_read_or_alloc_page ( struct fscache_cookie cookie,
struct page page,
fscache_rw_complete_t  end_io_func,
void context,
gfp_t  gfp 
)

Definition at line 339 of file page.c.

int __fscache_read_or_alloc_pages ( struct fscache_cookie cookie,
struct address_space mapping,
struct list_head pages,
unsigned *  nr_pages,
fscache_rw_complete_t  end_io_func,
void context,
gfp_t  gfp 
)

Definition at line 456 of file page.c.

void __fscache_uncache_all_inode_pages ( struct fscache_cookie cookie,
struct inode inode 
)

Definition at line 962 of file page.c.

void __fscache_uncache_page ( struct fscache_cookie cookie,
struct page page 
)

Definition at line 870 of file page.c.

void __fscache_wait_on_page_write ( struct fscache_cookie cookie,
struct page page 
)

Definition at line 38 of file page.c.

int __fscache_write_page ( struct fscache_cookie cookie,
struct page page,
gfp_t  gfp 
)

Definition at line 747 of file page.c.

EXPORT_SYMBOL ( __fscache_check_page_write  )
EXPORT_SYMBOL ( __fscache_wait_on_page_write  )
EXPORT_SYMBOL ( __fscache_maybe_release_page  )
EXPORT_SYMBOL ( __fscache_attr_changed  )
EXPORT_SYMBOL ( __fscache_read_or_alloc_page  )
EXPORT_SYMBOL ( __fscache_read_or_alloc_pages  )
EXPORT_SYMBOL ( __fscache_alloc_page  )
EXPORT_SYMBOL ( __fscache_write_page  )
EXPORT_SYMBOL ( __fscache_uncache_page  )
EXPORT_SYMBOL ( fscache_mark_pages_cached  )
EXPORT_SYMBOL ( __fscache_uncache_all_inode_pages  )
void fscache_mark_pages_cached ( struct fscache_retrieval op,
struct pagevec pagevec 
)

fscache_mark_pages_cached - Mark pages as being cached : The retrieval op pages are being marked for : The pages to be marked

Mark a bunch of netfs pages as being cached. After this is called, the netfs must call fscache_uncache_page() to remove the mark.

Definition at line 925 of file page.c.