Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
inode.c File Reference
#include <linux/buffer_head.h>
#include <linux/gfp.h>
#include <linux/mpage.h>
#include <linux/writeback.h>
#include <linux/uio.h>
#include "nilfs.h"
#include "btnode.h"
#include "segment.h"
#include "page.h"
#include "mdt.h"
#include "cpfile.h"
#include "ifile.h"

Go to the source code of this file.

Data Structures

struct  nilfs_iget_args
 

Macros

#define NILFS_MAX_TRUNCATE_BLOCKS   16384 /* 64MB for 4KB block */
 

Functions

void nilfs_inode_add_blocks (struct inode *inode, int n)
 
void nilfs_inode_sub_blocks (struct inode *inode, int n)
 
int nilfs_get_block (struct inode *inode, sector_t blkoff, struct buffer_head *bh_result, int create)
 
struct inodenilfs_new_inode (struct inode *dir, umode_t mode)
 
void nilfs_set_inode_flags (struct inode *inode)
 
int nilfs_read_inode_common (struct inode *inode, struct nilfs_inode *raw_inode)
 
struct inodenilfs_ilookup (struct super_block *sb, struct nilfs_root *root, unsigned long ino)
 
struct inodenilfs_iget_locked (struct super_block *sb, struct nilfs_root *root, unsigned long ino)
 
struct inodenilfs_iget (struct super_block *sb, struct nilfs_root *root, unsigned long ino)
 
struct inodenilfs_iget_for_gc (struct super_block *sb, unsigned long ino, __u64 cno)
 
void nilfs_write_inode_common (struct inode *inode, struct nilfs_inode *raw_inode, int has_bmap)
 
void nilfs_update_inode (struct inode *inode, struct buffer_head *ibh)
 
void nilfs_truncate (struct inode *inode)
 
void nilfs_evict_inode (struct inode *inode)
 
int nilfs_setattr (struct dentry *dentry, struct iattr *iattr)
 
int nilfs_permission (struct inode *inode, int mask)
 
int nilfs_load_inode_block (struct inode *inode, struct buffer_head **pbh)
 
int nilfs_inode_dirty (struct inode *inode)
 
int nilfs_set_file_dirty (struct inode *inode, unsigned nr_dirty)
 
int nilfs_mark_inode_dirty (struct inode *inode)
 
void nilfs_dirty_inode (struct inode *inode, int flags)
 
int nilfs_fiemap (struct inode *inode, struct fiemap_extent_info *fieinfo, __u64 start, __u64 len)
 

Variables

struct address_space_operations nilfs_aops
 

Macro Definition Documentation

#define NILFS_MAX_TRUNCATE_BLOCKS   16384 /* 64MB for 4KB block */

Definition at line 645 of file inode.c.

Function Documentation

void nilfs_dirty_inode ( struct inode inode,
int  flags 
)

nilfs_dirty_inode - reflect changes on given inode to an inode block. : inode of the file to be registered.

nilfs_dirty_inode() loads a inode block containing the specified and copies data from a nilfs_inode to a corresponding inode entry in the inode block. This operation is excluded from the segment construction. This function can be called both as a single operation and as a part of indivisible file operations.

Definition at line 924 of file inode.c.

void nilfs_evict_inode ( struct inode inode)

Definition at line 734 of file inode.c.

int nilfs_fiemap ( struct inode inode,
struct fiemap_extent_info fieinfo,
__u64  start,
__u64  len 
)

Definition at line 944 of file inode.c.

int nilfs_get_block ( struct inode inode,
sector_t  blkoff,
struct buffer_head *  bh_result,
int  create 
)

nilfs_get_block() - get a file block on the filesystem (callback function) - inode struct of the target file - file block number - buffer head to be mapped on - indicate whether allocating the block or not when it has not been allocated yet.

This function does not issue actual read request of the specified data block. It is done by VFS.

Definition at line 80 of file inode.c.

struct inode* nilfs_iget ( struct super_block sb,
struct nilfs_root root,
unsigned long  ino 
)
read

Definition at line 542 of file inode.c.

struct inode* nilfs_iget_for_gc ( struct super_block sb,
unsigned long  ino,
__u64  cno 
)
read

Definition at line 563 of file inode.c.

struct inode* nilfs_iget_locked ( struct super_block sb,
struct nilfs_root root,
unsigned long  ino 
)
read

Definition at line 532 of file inode.c.

struct inode* nilfs_ilookup ( struct super_block sb,
struct nilfs_root root,
unsigned long  ino 
)
read

Definition at line 522 of file inode.c.

void nilfs_inode_add_blocks ( struct inode inode,
int  n 
)

Definition at line 51 of file inode.c.

int nilfs_inode_dirty ( struct inode inode)

Definition at line 849 of file inode.c.

void nilfs_inode_sub_blocks ( struct inode inode,
int  n 
)

Definition at line 60 of file inode.c.

int nilfs_load_inode_block ( struct inode inode,
struct buffer_head **  pbh 
)

Definition at line 821 of file inode.c.

int nilfs_mark_inode_dirty ( struct inode inode)

Definition at line 896 of file inode.c.

struct inode* nilfs_new_inode ( struct inode dir,
umode_t  mode 
)
read

Definition at line 301 of file inode.c.

int nilfs_permission ( struct inode inode,
int  mask 
)

Definition at line 811 of file inode.c.

int nilfs_read_inode_common ( struct inode inode,
struct nilfs_inode raw_inode 
)

Definition at line 397 of file inode.c.

int nilfs_set_file_dirty ( struct inode inode,
unsigned  nr_dirty 
)

Definition at line 864 of file inode.c.

void nilfs_set_inode_flags ( struct inode inode)

Definition at line 377 of file inode.c.

int nilfs_setattr ( struct dentry dentry,
struct iattr iattr 
)

Definition at line 771 of file inode.c.

void nilfs_truncate ( struct inode inode)

Definition at line 678 of file inode.c.

void nilfs_update_inode ( struct inode inode,
struct buffer_head *  ibh 
)

Definition at line 625 of file inode.c.

void nilfs_write_inode_common ( struct inode inode,
struct nilfs_inode raw_inode,
int  has_bmap 
)

Definition at line 587 of file inode.c.

Variable Documentation

Initial value:
= {
.writepage = nilfs_writepage,
.readpage = nilfs_readpage,
.writepages = nilfs_writepages,
.set_page_dirty = nilfs_set_page_dirty,
.readpages = nilfs_readpages,
.write_begin = nilfs_write_begin,
.write_end = nilfs_write_end,
.invalidatepage = block_invalidatepage,
.direct_IO = nilfs_direct_IO,
.is_partially_uptodate = block_is_partially_uptodate,
}

Definition at line 287 of file inode.c.