Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
page.h File Reference
#include <linux/buffer_head.h>
#include "nilfs.h"

Go to the source code of this file.

Macros

#define NILFS_PAGE_BUG(page, m, a...)   do { nilfs_page_bug(page); BUG(); } while (0)
 

Enumerations

enum  {
  BH_NILFS_Allocated = BH_PrivateStart, BH_NILFS_Node, BH_NILFS_Volatile, BH_NILFS_Checked,
  BH_NILFS_Redirected
}
 

Functions

 BUFFER_FNS (NILFS_Node, nilfs_node) BUFFER_FNS(NILFS_Checked
 
nilfs_checked BUFFER_FNS (NILFS_Redirected, nilfs_redirected) int __nilfs_clear_page_dirty(struct page *)
 
struct buffer_head * nilfs_grab_buffer (struct inode *, struct address_space *, unsigned long, unsigned long)
 
void nilfs_forget_buffer (struct buffer_head *)
 
void nilfs_copy_buffer (struct buffer_head *, struct buffer_head *)
 
int nilfs_page_buffers_clean (struct page *)
 
void nilfs_page_bug (struct page *)
 
int nilfs_copy_dirty_pages (struct address_space *, struct address_space *)
 
void nilfs_copy_back_pages (struct address_space *, struct address_space *)
 
void nilfs_clear_dirty_pages (struct address_space *)
 
void nilfs_mapping_init (struct address_space *mapping, struct inode *inode, struct backing_dev_info *bdi)
 
unsigned nilfs_page_count_clean_buffers (struct page *, unsigned, unsigned)
 
unsigned long nilfs_find_uncommitted_extent (struct inode *inode, sector_t start_blk, sector_t *blkoff)
 

Macro Definition Documentation

#define NILFS_PAGE_BUG (   page,
  m,
  a... 
)    do { nilfs_page_bug(page); BUG(); } while (0)

Definition at line 66 of file page.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
BH_NILFS_Allocated 
BH_NILFS_Node 
BH_NILFS_Volatile 
BH_NILFS_Checked 
BH_NILFS_Redirected 

Definition at line 33 of file page.h.

Function Documentation

BUFFER_FNS ( NILFS_Node  ,
nilfs_node   
)
nilfs_checked BUFFER_FNS ( NILFS_Redirected  ,
nilfs_redirected   
)
void nilfs_clear_dirty_pages ( struct address_space )

Definition at line 373 of file page.c.

void nilfs_copy_back_pages ( struct address_space dmap,
struct address_space smap 
)

nilfs_copy_back_pages – copy back pages to original cache from shadow cache : destination page cache : source page cache

No pages must no be added to the cache during this process. This must be ensured by the caller.

Definition at line 311 of file page.c.

void nilfs_copy_buffer ( struct buffer_head *  dbh,
struct buffer_head *  sbh 
)

nilfs_copy_buffer – copy buffer data and flags : destination buffer : source buffer

Definition at line 115 of file page.c.

int nilfs_copy_dirty_pages ( struct address_space ,
struct address_space  
)

Definition at line 256 of file page.c.

unsigned long nilfs_find_uncommitted_extent ( struct inode inode,
sector_t  start_blk,
sector_t blkoff 
)

nilfs_find_uncommitted_extent - find extent of uncommitted data : inode : start block offset (in) : start offset of the found extent (out)

This function searches an extent of buffers marked "delayed" which starts from a block offset equal to or larger than . If such an extent was found, this will store the start offset in and return its length in blocks. Otherwise, zero is returned.

Definition at line 481 of file page.c.

void nilfs_forget_buffer ( struct buffer_head *  bh)

nilfs_forget_buffer - discard dirty state : owner inode of the buffer : buffer head of the buffer to be discarded

Definition at line 89 of file page.c.

struct buffer_head* nilfs_grab_buffer ( struct inode ,
struct address_space ,
unsigned  long,
unsigned  long 
)
read

Definition at line 61 of file page.c.

void nilfs_mapping_init ( struct address_space mapping,
struct inode inode,
struct backing_dev_info bdi 
)

Definition at line 428 of file page.c.

int nilfs_page_buffers_clean ( struct page )

Definition at line 156 of file page.c.

void nilfs_page_bug ( struct page )

Definition at line 169 of file page.c.

unsigned nilfs_page_count_clean_buffers ( struct page ,
unsigned  ,
unsigned   
)

Definition at line 411 of file page.c.