Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
btnode.h File Reference
#include <linux/types.h>
#include <linux/buffer_head.h>
#include <linux/fs.h>
#include <linux/backing-dev.h>

Go to the source code of this file.

Data Structures

struct  nilfs_btnode_chkey_ctxt
 

Functions

void nilfs_btnode_cache_clear (struct address_space *)
 
struct buffer_head * nilfs_btnode_create_block (struct address_space *btnc, __u64 blocknr)
 
int nilfs_btnode_submit_block (struct address_space *, __u64, sector_t, int, struct buffer_head **, sector_t *)
 
void nilfs_btnode_delete (struct buffer_head *)
 
int nilfs_btnode_prepare_change_key (struct address_space *, struct nilfs_btnode_chkey_ctxt *)
 
void nilfs_btnode_commit_change_key (struct address_space *, struct nilfs_btnode_chkey_ctxt *)
 
void nilfs_btnode_abort_change_key (struct address_space *, struct nilfs_btnode_chkey_ctxt *)
 

Function Documentation

void nilfs_btnode_abort_change_key ( struct address_space btnc,
struct nilfs_btnode_chkey_ctxt ctxt 
)

nilfs_btnode_abort_change_key abort the change_key operation prepared by prepare_change_key().

Definition at line 281 of file btnode.c.

void nilfs_btnode_cache_clear ( struct address_space )

Definition at line 37 of file btnode.c.

void nilfs_btnode_commit_change_key ( struct address_space btnc,
struct nilfs_btnode_chkey_ctxt ctxt 
)

nilfs_btnode_commit_change_key commit the change_key operation prepared by prepare_change_key().

Definition at line 240 of file btnode.c.

struct buffer_head* nilfs_btnode_create_block ( struct address_space btnc,
__u64  blocknr 
)
read

Definition at line 44 of file btnode.c.

void nilfs_btnode_delete ( struct buffer_head *  bh)

nilfs_btnode_delete - delete B-tree node buffer : buffer to be deleted

nilfs_btnode_delete() invalidates the specified buffer and delete the page including the buffer if the page gets unbusy.

Definition at line 142 of file btnode.c.

int nilfs_btnode_prepare_change_key ( struct address_space btnc,
struct nilfs_btnode_chkey_ctxt ctxt 
)

nilfs_btnode_prepare_change_key prepare to move contents of the block for old key to one of new key. the old buffer will not be removed, but might be reused for new buffer. it might return -ENOMEM because of memory allocation errors, and might return -EIO because of disk read errors.

Definition at line 170 of file btnode.c.

int nilfs_btnode_submit_block ( struct address_space ,
__u64  ,
sector_t  ,
int  ,
struct buffer_head **  ,
sector_t  
)

Definition at line 69 of file btnode.c.