Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <linux/buffer_head.h>
#include <linux/string.h>
#include <linux/errno.h>
#include "nilfs.h"
#include "mdt.h"
#include "alloc.h"
#include "dat.h"
Go to the source code of this file.
Data Structures | |
struct | nilfs_dat_info |
Macros | |
#define | NILFS_CNO_MIN ((__u64)1) |
#define | NILFS_CNO_MAX (~(__u64)0) |
void nilfs_dat_abort_alloc | ( | struct inode * | dat, |
struct nilfs_palloc_req * | req | ||
) |
void nilfs_dat_abort_end | ( | struct inode * | dat, |
struct nilfs_palloc_req * | req | ||
) |
void nilfs_dat_abort_update | ( | struct inode * | dat, |
struct nilfs_palloc_req * | oldreq, | ||
struct nilfs_palloc_req * | newreq | ||
) |
void nilfs_dat_commit_alloc | ( | struct inode * | dat, |
struct nilfs_palloc_req * | req | ||
) |
void nilfs_dat_commit_update | ( | struct inode * | dat, |
struct nilfs_palloc_req * | oldreq, | ||
struct nilfs_palloc_req * | newreq, | ||
int | dead | ||
) |
nilfs_dat_freev - free virtual block numbers : DAT file inode : array of virtual block numbers : number of virtual block numbers
Description: nilfs_dat_freev() frees the virtual block numbers specified by and .
Return Value: On success, 0 is returned. On error, one of the following negative error codes is returned.
%-EIO - I/O error.
%-ENOMEM - Insufficient amount of memory available.
%-ENOENT - The virtual block number have not been allocated.
nilfs_dat_move - change a block number : DAT file inode : virtual block number : block number
Description: nilfs_dat_move() changes the block number associated with to .
Return Value: On success, 0 is returned. On error, one of the following negative error codes is returned.
%-EIO - I/O error.
%-ENOMEM - Insufficient amount of memory available.
int nilfs_dat_prepare_alloc | ( | struct inode * | dat, |
struct nilfs_palloc_req * | req | ||
) |
int nilfs_dat_prepare_end | ( | struct inode * | dat, |
struct nilfs_palloc_req * | req | ||
) |
int nilfs_dat_prepare_start | ( | struct inode * | dat, |
struct nilfs_palloc_req * | req | ||
) |
int nilfs_dat_prepare_update | ( | struct inode * | dat, |
struct nilfs_palloc_req * | oldreq, | ||
struct nilfs_palloc_req * | newreq | ||
) |
int nilfs_dat_read | ( | struct super_block * | sb, |
size_t | entry_size, | ||
struct nilfs_inode * | raw_inode, | ||
struct inode ** | inodep | ||
) |
nilfs_dat_translate - translate a virtual block number to a block number : DAT file inode : virtual block number : pointer to a block number
Description: nilfs_dat_translate() maps the virtual block number to the corresponding block number.
Return Value: On success, 0 is returned and the block number associated with is stored in the place pointed by . On error, one of the following negative error codes is returned.
%-EIO - I/O error.
%-ENOMEM - Insufficient amount of memory available.
%-ENOENT - A block number associated with does not exist.