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

Go to the source code of this file.

Functions

int nilfs_palloc_init_blockgroup (struct inode *inode, unsigned entry_size)
 
int nilfs_palloc_get_entry_block (struct inode *inode, __u64 nr, int create, struct buffer_head **bhp)
 
voidnilfs_palloc_block_get_entry (const struct inode *inode, __u64 nr, const struct buffer_head *bh, void *kaddr)
 
int nilfs_palloc_prepare_alloc_entry (struct inode *inode, struct nilfs_palloc_req *req)
 
void nilfs_palloc_commit_alloc_entry (struct inode *inode, struct nilfs_palloc_req *req)
 
void nilfs_palloc_commit_free_entry (struct inode *inode, struct nilfs_palloc_req *req)
 
void nilfs_palloc_abort_alloc_entry (struct inode *inode, struct nilfs_palloc_req *req)
 
int nilfs_palloc_prepare_free_entry (struct inode *inode, struct nilfs_palloc_req *req)
 
void nilfs_palloc_abort_free_entry (struct inode *inode, struct nilfs_palloc_req *req)
 
int nilfs_palloc_freev (struct inode *inode, __u64 *entry_nrs, size_t nitems)
 
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)
 

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.