Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
aops.c File Reference
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/highmem.h>
#include <linux/pagemap.h>
#include <asm/byteorder.h>
#include <linux/swap.h>
#include <linux/pipe_fs_i.h>
#include <linux/mpage.h>
#include <linux/quotaops.h>
#include <cluster/masklog.h>
#include "ocfs2.h"
#include "alloc.h"
#include "aops.h"
#include "dlmglue.h"
#include "extent_map.h"
#include "file.h"
#include "inode.h"
#include "journal.h"
#include "suballoc.h"
#include "super.h"
#include "symlink.h"
#include "refcounttree.h"
#include "ocfs2_trace.h"
#include "buffer_head_io.h"

Go to the source code of this file.

Data Structures

struct  ocfs2_write_cluster_desc
 
struct  ocfs2_write_ctxt
 

Macros

#define OCFS2_MAX_CTXT_PAGES   (OCFS2_MAX_CLUSTERSIZE / PAGE_CACHE_SIZE)
 
#define OCFS2_MAX_CLUSTERS_PER_PAGE   (PAGE_CACHE_SIZE / OCFS2_MIN_CLUSTERSIZE)
 

Functions

int ocfs2_get_block (struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create)
 
int ocfs2_read_inline_data (struct inode *inode, struct page *page, struct buffer_head *di_bh)
 
int walk_page_buffers (handle_t *handle, struct buffer_head *head, unsigned from, unsigned to, int *partial, int(*fn)(handle_t *handle, struct buffer_head *bh))
 
int ocfs2_map_page_blocks (struct page *page, u64 *p_blkno, struct inode *inode, unsigned int from, unsigned int to, int new)
 
void ocfs2_unlock_and_free_pages (struct page **pages, int num_pages)
 
int ocfs2_size_fits_inline_data (struct buffer_head *di_bh, u64 new_size)
 
int ocfs2_write_begin_nolock (struct file *filp, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata, struct buffer_head *di_bh, struct page *mmap_page)
 
int ocfs2_write_end_nolock (struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata)
 

Variables

struct address_space_operations ocfs2_aops
 

Macro Definition Documentation

#define OCFS2_MAX_CLUSTERS_PER_PAGE   (PAGE_CACHE_SIZE / OCFS2_MIN_CLUSTERSIZE)

Definition at line 832 of file aops.c.

#define OCFS2_MAX_CTXT_PAGES   (OCFS2_MAX_CLUSTERSIZE / PAGE_CACHE_SIZE)

Definition at line 829 of file aops.c.

Function Documentation

int ocfs2_get_block ( struct inode inode,
sector_t  iblock,
struct buffer_head *  bh_result,
int  create 
)

Definition at line 130 of file aops.c.

int ocfs2_map_page_blocks ( struct page page,
u64 p_blkno,
struct inode inode,
unsigned int  from,
unsigned int  to,
int  new 
)

Definition at line 734 of file aops.c.

int ocfs2_read_inline_data ( struct inode inode,
struct page page,
struct buffer_head *  di_bh 
)

Definition at line 215 of file aops.c.

int ocfs2_size_fits_inline_data ( struct buffer_head *  di_bh,
u64  new_size 
)

Definition at line 1552 of file aops.c.

void ocfs2_unlock_and_free_pages ( struct page **  pages,
int  num_pages 
)

Definition at line 907 of file aops.c.

int ocfs2_write_begin_nolock ( struct file filp,
struct address_space mapping,
loff_t  pos,
unsigned  len,
unsigned  flags,
struct page **  pagep,
void **  fsdata,
struct buffer_head *  di_bh,
struct page mmap_page 
)

Definition at line 1704 of file aops.c.

int ocfs2_write_end_nolock ( struct address_space mapping,
loff_t  pos,
unsigned  len,
unsigned  copied,
struct page page,
void fsdata 
)

Definition at line 1995 of file aops.c.

int walk_page_buffers ( handle_t *  handle,
struct buffer_head *  head,
unsigned  from,
unsigned  to,
int partial,
int(*)(handle_t *handle, struct buffer_head *bh)  fn 
)

Definition at line 418 of file aops.c.

Variable Documentation

Initial value:
= {
.readpage = ocfs2_readpage,
.readpages = ocfs2_readpages,
.writepage = ocfs2_writepage,
.write_begin = ocfs2_write_begin,
.write_end = ocfs2_write_end,
.bmap = ocfs2_bmap,
.direct_IO = ocfs2_direct_IO,
.invalidatepage = ocfs2_invalidatepage,
.releasepage = ocfs2_releasepage,
.migratepage = buffer_migrate_page,
.is_partially_uptodate = block_is_partially_uptodate,
.error_remove_page = generic_error_remove_page,
}

Definition at line 2086 of file aops.c.