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

Go to the source code of this file.

Data Structures

struct  nilfs_palloc_req
 
struct  nilfs_bh_assoc
 
struct  nilfs_palloc_cache
 

Macros

#define nilfs_set_bit_atomic   ext2_set_bit_atomic
 
#define nilfs_clear_bit_atomic   ext2_clear_bit_atomic
 
#define nilfs_find_next_zero_bit   find_next_zero_bit_le
 

Functions

int nilfs_palloc_init_blockgroup (struct inode *, unsigned)
 
int nilfs_palloc_get_entry_block (struct inode *, __u64, int, struct buffer_head **)
 
voidnilfs_palloc_block_get_entry (const struct inode *, __u64, const struct buffer_head *, void *)
 
int nilfs_palloc_prepare_alloc_entry (struct inode *, struct nilfs_palloc_req *)
 
void nilfs_palloc_commit_alloc_entry (struct inode *, struct nilfs_palloc_req *)
 
void nilfs_palloc_abort_alloc_entry (struct inode *, struct nilfs_palloc_req *)
 
void nilfs_palloc_commit_free_entry (struct inode *, struct nilfs_palloc_req *)
 
int nilfs_palloc_prepare_free_entry (struct inode *, struct nilfs_palloc_req *)
 
void nilfs_palloc_abort_free_entry (struct inode *, struct nilfs_palloc_req *)
 
int nilfs_palloc_freev (struct inode *, __u64 *, size_t)
 
void nilfs_palloc_setup_cache (struct inode *inode, struct nilfs_palloc_cache *cache)
 
void nilfs_palloc_clear_cache (struct inode *inode)
 
void nilfs_palloc_destroy_cache (struct inode *inode)
 

Macro Definition Documentation

#define nilfs_clear_bit_atomic   ext2_clear_bit_atomic

Definition at line 76 of file alloc.h.

#define nilfs_find_next_zero_bit   find_next_zero_bit_le

Definition at line 77 of file alloc.h.

#define nilfs_set_bit_atomic   ext2_set_bit_atomic

Definition at line 75 of file alloc.h.

Function Documentation

void nilfs_palloc_abort_alloc_entry ( struct inode inode,
struct nilfs_palloc_req req 
)

nilfs_palloc_abort_alloc_entry - cancel allocation of a persistent object : inode of metadata file using this allocator : nilfs_palloc_req structure exchanged for the allocation

Definition at line 543 of file alloc.c.

void nilfs_palloc_abort_free_entry ( struct inode inode,
struct nilfs_palloc_req req 
)

nilfs_palloc_abort_free_entry - cancel deallocating a persistent object : inode of metadata file using this allocator : nilfs_palloc_req structure exchanged for the removal

Definition at line 607 of file alloc.c.

void* nilfs_palloc_block_get_entry ( const struct inode inode,
__u64  nr,
const struct buffer_head *  bh,
void kaddr 
)

nilfs_palloc_block_get_entry - get kernel address of an entry : inode of metadata file using this allocator : serial number of the entry (e.g. inode number) : buffer head of the buffer storing the entry block : kernel address mapped for the page including the buffer

Definition at line 321 of file alloc.c.

void nilfs_palloc_clear_cache ( struct inode inode)

Definition at line 703 of file alloc.c.

void nilfs_palloc_commit_alloc_entry ( struct inode inode,
struct nilfs_palloc_req req 
)

nilfs_palloc_commit_alloc_entry - finish allocation of a persistent object : inode of metadata file using this allocator : nilfs_palloc_req structure exchanged for the allocation

Definition at line 489 of file alloc.c.

void nilfs_palloc_commit_free_entry ( struct inode inode,
struct nilfs_palloc_req req 
)

nilfs_palloc_commit_free_entry - finish deallocating a persistent object : inode of metadata file using this allocator : nilfs_palloc_req structure exchanged for the removal

Definition at line 505 of file alloc.c.

void nilfs_palloc_destroy_cache ( struct inode inode)

Definition at line 717 of file alloc.c.

int nilfs_palloc_freev ( struct inode inode,
__u64 entry_nrs,
size_t  nitems 
)

nilfs_palloc_freev - deallocate a set of persistent objects : inode of metadata file using this allocator : array of entry numbers to be deallocated : number of entries stored in

Definition at line 640 of file alloc.c.

int nilfs_palloc_get_entry_block ( struct inode inode,
__u64  nr,
int  create,
struct buffer_head **  bhp 
)

nilfs_palloc_get_entry_block - get buffer head of an entry block : inode of metadata file using this allocator : serial number of the entry (e.g. inode number) : create flag : pointer to store the resultant buffer head

Definition at line 287 of file alloc.c.

int nilfs_palloc_init_blockgroup ( struct inode inode,
unsigned  entry_size 
)

nilfs_palloc_init_blockgroup - initialize private variables for allocator : inode of metadata file using this allocator : size of the persistent object

Definition at line 61 of file alloc.c.

int nilfs_palloc_prepare_alloc_entry ( struct inode inode,
struct nilfs_palloc_req req 
)

nilfs_palloc_prepare_alloc_entry - prepare to allocate a persistent object : inode of metadata file using this allocator : nilfs_palloc_req structure exchanged for the allocation

Definition at line 405 of file alloc.c.

int nilfs_palloc_prepare_free_entry ( struct inode inode,
struct nilfs_palloc_req req 
)

nilfs_palloc_prepare_free_entry - prepare to deallocate a persistent object : inode of metadata file using this allocator : nilfs_palloc_req structure exchanged for the removal

Definition at line 580 of file alloc.c.

void nilfs_palloc_setup_cache ( struct inode inode,
struct nilfs_palloc_cache cache 
)

Definition at line 696 of file alloc.c.