Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
btnode.c File Reference
#include <linux/types.h>
#include <linux/buffer_head.h>
#include <linux/mm.h>
#include <linux/backing-dev.h>
#include <linux/gfp.h>
#include "nilfs.h"
#include "mdt.h"
#include "dat.h"
#include "page.h"
#include "btnode.h"

Go to the source code of this file.

Functions

void nilfs_btnode_cache_clear (struct address_space *btnc)
 
struct buffer_head * nilfs_btnode_create_block (struct address_space *btnc, __u64 blocknr)
 
int nilfs_btnode_submit_block (struct address_space *btnc, __u64 blocknr, sector_t pblocknr, int mode, struct buffer_head **pbh, sector_t *submit_ptr)
 
void nilfs_btnode_delete (struct buffer_head *bh)
 
int nilfs_btnode_prepare_change_key (struct address_space *btnc, struct nilfs_btnode_chkey_ctxt *ctxt)
 
void nilfs_btnode_commit_change_key (struct address_space *btnc, struct nilfs_btnode_chkey_ctxt *ctxt)
 
void nilfs_btnode_abort_change_key (struct address_space *btnc, struct nilfs_btnode_chkey_ctxt *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 btnc)

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 btnc,
__u64  blocknr,
sector_t  pblocknr,
int  mode,
struct buffer_head **  pbh,
sector_t submit_ptr 
)

Definition at line 69 of file btnode.c.