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

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 ifile,
ino_t  ino,
struct buffer_head **  out_bh 
)

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.

Variable Documentation