Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ifile.h File Reference
#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)
 

Function Documentation

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.

Definition at line 65 of file ifile.c.

int nilfs_ifile_delete_inode ( struct inode ifile,
ino_t  ino 
)

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.

Definition at line 108 of file ifile.c.

int nilfs_ifile_get_inode_block ( struct inode ,
ino_t  ,
struct buffer_head **   
)

Definition at line 143 of file ifile.c.

int nilfs_ifile_read ( struct super_block sb,
struct nilfs_root root,
size_t  inode_size,
struct nilfs_inode raw_inode,
struct inode **  inodep 
)

nilfs_ifile_read - read or get ifile inode : super block instance : root object : size of an inode : on-disk ifile inode : buffer to store the inode

Definition at line 170 of file ifile.c.