Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
aops.h File Reference

Go to the source code of this file.

Macros

#define ocfs2_iocb_is_rw_locked(iocb)   test_bit(0, (unsigned long *)&iocb->private)
 
#define ocfs2_iocb_clear_rw_locked(iocb)   clear_bit(OCFS2_IOCB_RW_LOCK, (unsigned long *)&iocb->private)
 
#define ocfs2_iocb_rw_locked_level(iocb)   test_bit(OCFS2_IOCB_RW_LOCK_LEVEL, (unsigned long *)&iocb->private)
 
#define ocfs2_iocb_set_sem_locked(iocb)   set_bit(OCFS2_IOCB_SEM, (unsigned long *)&iocb->private)
 
#define ocfs2_iocb_clear_sem_locked(iocb)   clear_bit(OCFS2_IOCB_SEM, (unsigned long *)&iocb->private)
 
#define ocfs2_iocb_is_sem_locked(iocb)   test_bit(OCFS2_IOCB_SEM, (unsigned long *)&iocb->private)
 
#define ocfs2_iocb_set_unaligned_aio(iocb)   set_bit(OCFS2_IOCB_UNALIGNED_IO, (unsigned long *)&iocb->private)
 
#define ocfs2_iocb_clear_unaligned_aio(iocb)   clear_bit(OCFS2_IOCB_UNALIGNED_IO, (unsigned long *)&iocb->private)
 
#define ocfs2_iocb_is_unaligned_aio(iocb)   test_bit(OCFS2_IOCB_UNALIGNED_IO, (unsigned long *)&iocb->private)
 
#define OCFS2_IOEND_WQ_HASH_SZ   37
 
#define ocfs2_ioend_wq(v)
 

Enumerations

enum  ocfs2_iocb_lock_bits {
  OCFS2_IOCB_RW_LOCK = 0, OCFS2_IOCB_RW_LOCK_LEVEL, OCFS2_IOCB_SEM, OCFS2_IOCB_UNALIGNED_IO,
  OCFS2_IOCB_NUM_LOCKS
}
 

Functions

handle_t * ocfs2_start_walk_page_trans (struct inode *inode, struct page *page, unsigned from, unsigned to)
 
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 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_write_end_nolock (struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata)
 
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_read_inline_data (struct inode *inode, struct page *page, struct buffer_head *di_bh)
 
int ocfs2_size_fits_inline_data (struct buffer_head *di_bh, u64 new_size)
 
int ocfs2_get_block (struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create)
 

Variables

wait_queue_head_t ocfs2__ioend_wq [OCFS2_IOEND_WQ_HASH_SZ]
 

Macro Definition Documentation

#define ocfs2_iocb_clear_rw_locked (   iocb)    clear_bit(OCFS2_IOCB_RW_LOCK, (unsigned long *)&iocb->private)

Definition at line 85 of file aops.h.

#define ocfs2_iocb_clear_sem_locked (   iocb)    clear_bit(OCFS2_IOCB_SEM, (unsigned long *)&iocb->private)

Definition at line 91 of file aops.h.

#define ocfs2_iocb_clear_unaligned_aio (   iocb)    clear_bit(OCFS2_IOCB_UNALIGNED_IO, (unsigned long *)&iocb->private)

Definition at line 98 of file aops.h.

#define ocfs2_iocb_is_rw_locked (   iocb)    test_bit(0, (unsigned long *)&iocb->private)

Definition at line 61 of file aops.h.

#define ocfs2_iocb_is_sem_locked (   iocb)    test_bit(OCFS2_IOCB_SEM, (unsigned long *)&iocb->private)

Definition at line 93 of file aops.h.

#define ocfs2_iocb_is_unaligned_aio (   iocb)    test_bit(OCFS2_IOCB_UNALIGNED_IO, (unsigned long *)&iocb->private)

Definition at line 100 of file aops.h.

#define ocfs2_iocb_rw_locked_level (   iocb)    test_bit(OCFS2_IOCB_RW_LOCK_LEVEL, (unsigned long *)&iocb->private)

Definition at line 87 of file aops.h.

#define ocfs2_iocb_set_sem_locked (   iocb)    set_bit(OCFS2_IOCB_SEM, (unsigned long *)&iocb->private)

Definition at line 89 of file aops.h.

#define ocfs2_iocb_set_unaligned_aio (   iocb)    set_bit(OCFS2_IOCB_UNALIGNED_IO, (unsigned long *)&iocb->private)

Definition at line 96 of file aops.h.

#define ocfs2_ioend_wq (   v)
Value:

Definition at line 104 of file aops.h.

#define OCFS2_IOEND_WQ_HASH_SZ   37

Definition at line 103 of file aops.h.

Enumeration Type Documentation

Enumerator:
OCFS2_IOCB_RW_LOCK 
OCFS2_IOCB_RW_LOCK_LEVEL 
OCFS2_IOCB_SEM 
OCFS2_IOCB_UNALIGNED_IO 
OCFS2_IOCB_NUM_LOCKS 

Definition at line 77 of file aops.h.

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.

handle_t* ocfs2_start_walk_page_trans ( struct inode inode,
struct page page,
unsigned  from,
unsigned  to 
)
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

Definition at line 1615 of file super.c.