Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <linux/buffer_head.h>
#include "nilfs.h"
#include "mdt.h"
#include "alloc.h"
#include "ifile.h"
Go to the source code of this file.
Data Structures | |
struct | nilfs_ifile_info |
Functions | |
int | nilfs_ifile_create_inode (struct inode *ifile, ino_t *out_ino, struct buffer_head **out_bh) |
int | nilfs_ifile_delete_inode (struct inode *ifile, ino_t ino) |
int | nilfs_ifile_get_inode_block (struct inode *ifile, ino_t ino, struct buffer_head **out_bh) |
int | nilfs_ifile_read (struct super_block *sb, struct nilfs_root *root, size_t inode_size, struct nilfs_inode *raw_inode, struct inode **inodep) |
Variables | |
struct nilfs_ifile_info | __attribute__ |
int nilfs_ifile_create_inode | ( | struct inode * | ifile, |
ino_t * | out_ino, | ||
struct buffer_head ** | out_bh | ||
) |
nilfs_ifile_create_inode - create a new disk inode : ifile inode : pointer to a variable to store inode number : buffer_head contains newly allocated disk inode
Return Value: On success, 0 is returned and the newly allocated inode number is stored in the place pointed by , and buffer_head pointer that contains newly allocated disk inode structure 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.
%-ENOSPC - No inode left.
nilfs_ifile_delete_inode - delete a disk inode : ifile inode : inode number
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 inode number have not been allocated.
int nilfs_ifile_read | ( | struct super_block * | sb, |
struct nilfs_root * | root, | ||
size_t | inode_size, | ||
struct nilfs_inode * | raw_inode, | ||
struct inode ** | inodep | ||
) |