|
Linux Kernel
3.7.1
|
Go to the source code of this file.
| void nilfs_dat_abort_alloc | ( | struct inode * | , |
| struct nilfs_palloc_req * | |||
| ) |
| void nilfs_dat_abort_end | ( | struct inode * | , |
| struct nilfs_palloc_req * | |||
| ) |
| void nilfs_dat_abort_update | ( | struct inode * | , |
| struct nilfs_palloc_req * | , | ||
| struct nilfs_palloc_req * | |||
| ) |
| void nilfs_dat_commit_alloc | ( | struct inode * | , |
| struct nilfs_palloc_req * | |||
| ) |
| void nilfs_dat_commit_update | ( | struct inode * | , |
| struct nilfs_palloc_req * | , | ||
| struct nilfs_palloc_req * | , | ||
| int | |||
| ) |
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 * | , |
| struct nilfs_palloc_req * | |||
| ) |
| int nilfs_dat_prepare_end | ( | struct inode * | , |
| struct nilfs_palloc_req * | |||
| ) |
| int nilfs_dat_prepare_start | ( | struct inode * | , |
| struct nilfs_palloc_req * | |||
| ) |
| int nilfs_dat_prepare_update | ( | struct inode * | , |
| struct nilfs_palloc_req * | , | ||
| struct nilfs_palloc_req * | |||
| ) |
| 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.
1.8.2