Linux Kernel
3.7.1
|
#include <linux/fs.h>
#include <linux/buffer_head.h>
#include <linux/nilfs2_fs.h>
#include "mdt.h"
#include "alloc.h"
Go to the source code of this file.
Functions | |
int | nilfs_ifile_create_inode (struct inode *, ino_t *, struct buffer_head **) |
int | nilfs_ifile_delete_inode (struct inode *, ino_t) |
int | nilfs_ifile_get_inode_block (struct inode *, ino_t, struct buffer_head **) |
int | nilfs_ifile_read (struct super_block *sb, struct nilfs_root *root, size_t inode_size, struct nilfs_inode *raw_inode, struct inode **inodep) |
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 | ||
) |