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/pagemap.h>
#include <linux/writeback.h>
#include <linux/swap.h>
#include <linux/bitops.h>
#include <linux/page-flags.h>
#include <linux/list.h>
#include <linux/highmem.h>
#include <linux/pagevec.h>
#include <linux/gfp.h>
#include "nilfs.h"
#include "page.h"
#include "mdt.h"

Go to the source code of this file.

Macros

#define NILFS_BUFFER_INHERENT_BITS
 

Functions

struct buffer_head * nilfs_grab_buffer (struct inode *inode, struct address_space *mapping, unsigned long blkoff, unsigned long b_state)
 
void nilfs_forget_buffer (struct buffer_head *bh)
 
void nilfs_copy_buffer (struct buffer_head *dbh, struct buffer_head *sbh)
 
int nilfs_page_buffers_clean (struct page *page)
 
void nilfs_page_bug (struct page *page)
 
int nilfs_copy_dirty_pages (struct address_space *dmap, struct address_space *smap)
 
void nilfs_copy_back_pages (struct address_space *dmap, struct address_space *smap)
 
void nilfs_clear_dirty_pages (struct address_space *mapping)
 
unsigned nilfs_page_count_clean_buffers (struct page *page, unsigned from, unsigned to)
 
void nilfs_mapping_init (struct address_space *mapping, struct inode *inode, struct backing_dev_info *bdi)
 
int __nilfs_clear_page_dirty (struct page *page)
 
unsigned long nilfs_find_uncommitted_extent (struct inode *inode, sector_t start_blk, sector_t *blkoff)
 

Macro Definition Documentation

#define NILFS_BUFFER_INHERENT_BITS
Value:
((1UL << BH_Uptodate) | (1UL << BH_Mapped) | (1UL << BH_NILFS_Node) | \

Definition at line 38 of file page.c.

Function Documentation

int __nilfs_clear_page_dirty ( struct page page)

Definition at line 450 of file page.c.

void nilfs_clear_dirty_pages ( struct address_space mapping)

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 dmap,
struct address_space smap 
)

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 inode,
struct address_space mapping,
unsigned long  blkoff,
unsigned long  b_state 
)
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 page)

Definition at line 156 of file page.c.

void nilfs_page_bug ( struct page page)

Definition at line 169 of file page.c.

unsigned nilfs_page_count_clean_buffers ( struct page page,
unsigned  from,
unsigned  to 
)

Definition at line 411 of file page.c.