Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
inode.c File Reference
#include <linux/time.h>
#include <linux/fs.h>
#include "reiserfs.h"
#include "acl.h"
#include "xattr.h"
#include <linux/exportfs.h>
#include <linux/pagemap.h>
#include <linux/highmem.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <asm/unaligned.h>
#include <linux/buffer_head.h>
#include <linux/mpage.h>
#include <linux/writeback.h>
#include <linux/quotaops.h>
#include <linux/swap.h>

Go to the source code of this file.

Functions

int reiserfs_commit_write (struct file *f, struct page *page, unsigned from, unsigned to)
 
void reiserfs_evict_inode (struct inode *inode)
 
void make_cpu_key (struct cpu_key *key, struct inode *inode, loff_t offset, int type, int length)
 
void make_le_item_head (struct item_head *ih, const struct cpu_key *key, int version, loff_t offset, int type, int length, int entry_count)
 
int reiserfs_get_block (struct inode *inode, sector_t block, struct buffer_head *bh_result, int create)
 
void reiserfs_update_sd_size (struct reiserfs_transaction_handle *th, struct inode *inode, loff_t size)
 
int reiserfs_init_locked_inode (struct inode *inode, void *p)
 
void reiserfs_read_locked_inode (struct inode *inode, struct reiserfs_iget_args *args)
 
int reiserfs_find_actor (struct inode *inode, void *opaque)
 
struct inodereiserfs_iget (struct super_block *s, const struct cpu_key *key)
 
struct dentryreiserfs_fh_to_dentry (struct super_block *sb, struct fid *fid, int fh_len, int fh_type)
 
struct dentryreiserfs_fh_to_parent (struct super_block *sb, struct fid *fid, int fh_len, int fh_type)
 
int reiserfs_encode_fh (struct inode *inode, __u32 *data, int *lenp, struct inode *parent)
 
int reiserfs_write_inode (struct inode *inode, struct writeback_control *wbc)
 
int reiserfs_new_inode (struct reiserfs_transaction_handle *th, struct inode *dir, umode_t mode, const char *symname, loff_t i_size, struct dentry *dentry, struct inode *inode, struct reiserfs_security_handle *security)
 
int reiserfs_truncate_file (struct inode *inode, int update_timestamps)
 
int __reiserfs_write_begin (struct page *page, unsigned from, unsigned len)
 
void sd_attrs_to_i_attrs (__u16 sd_attrs, struct inode *inode)
 
void i_attrs_to_sd_attrs (struct inode *inode, __u16 *sd_attrs)
 
int reiserfs_setattr (struct dentry *dentry, struct iattr *attr)
 

Variables

struct address_space_operations reiserfs_address_space_operations
 

Function Documentation

int __reiserfs_write_begin ( struct page page,
unsigned  from,
unsigned  len 
)

Definition at line 2640 of file inode.c.

void i_attrs_to_sd_attrs ( struct inode inode,
__u16 sd_attrs 
)

Definition at line 2895 of file inode.c.

void make_cpu_key ( struct cpu_key key,
struct inode inode,
loff_t  offset,
int  type,
int  length 
)

Definition at line 104 of file inode.c.

void make_le_item_head ( struct item_head ih,
const struct cpu_key key,
int  version,
loff_t  offset,
int  type,
int  length,
int  entry_count 
)
inline

Definition at line 116 of file inode.c.

int reiserfs_commit_write ( struct file f,
struct page page,
unsigned  from,
unsigned  to 
)

Definition at line 2797 of file inode.c.

int reiserfs_encode_fh ( struct inode inode,
__u32 data,
int lenp,
struct inode parent 
)

Definition at line 1599 of file inode.c.

void reiserfs_evict_inode ( struct inode inode)

Definition at line 25 of file inode.c.

struct dentry* reiserfs_fh_to_dentry ( struct super_block sb,
struct fid fid,
int  fh_len,
int  fh_type 
)
read

Definition at line 1556 of file inode.c.

struct dentry* reiserfs_fh_to_parent ( struct super_block sb,
struct fid fid,
int  fh_len,
int  fh_type 
)
read

Definition at line 1585 of file inode.c.

int reiserfs_find_actor ( struct inode inode,
void opaque 
)

reiserfs_find_actor() - "find actor" reiserfs supplies to iget5_locked().

: inode from hash table to check : "cookie" passed to iget5_locked(). This is &reiserfs_iget_args.

This function is called by iget5_locked() to distinguish reiserfs inodes having the same inode numbers. Such inodes can only exist due to some error condition. One of them should be bad. Inodes with identical inode numbers (objectids) are distinguished by parent directory ids.

Definition at line 1497 of file inode.c.

int reiserfs_get_block ( struct inode inode,
sector_t  block,
struct buffer_head *  bh_result,
int  create 
)

Definition at line 599 of file inode.c.

struct inode* reiserfs_iget ( struct super_block s,
const struct cpu_key key 
)
read

Definition at line 1507 of file inode.c.

int reiserfs_init_locked_inode ( struct inode inode,
void p 
)

Definition at line 1406 of file inode.c.

int reiserfs_new_inode ( struct reiserfs_transaction_handle th,
struct inode dir,
umode_t  mode,
const char symname,
loff_t  i_size,
struct dentry dentry,
struct inode inode,
struct reiserfs_security_handle security 
)

Definition at line 1766 of file inode.c.

void reiserfs_read_locked_inode ( struct inode inode,
struct reiserfs_iget_args args 
)

Definition at line 1416 of file inode.c.

int reiserfs_setattr ( struct dentry dentry,
struct iattr attr 
)

Definition at line 3095 of file inode.c.

int reiserfs_truncate_file ( struct inode inode,
int  update_timestamps 
)

Definition at line 2089 of file inode.c.

void reiserfs_update_sd_size ( struct reiserfs_transaction_handle th,
struct inode inode,
loff_t  size 
)

Definition at line 1327 of file inode.c.

int reiserfs_write_inode ( struct inode inode,
struct writeback_control wbc 
)

Definition at line 1635 of file inode.c.

void sd_attrs_to_i_attrs ( __u16  sd_attrs,
struct inode inode 
)

Definition at line 2869 of file inode.c.

Variable Documentation

struct address_space_operations reiserfs_address_space_operations
Initial value:
= {
.writepage = reiserfs_writepage,
.readpage = reiserfs_readpage,
.readpages = reiserfs_readpages,
.releasepage = reiserfs_releasepage,
.invalidatepage = reiserfs_invalidatepage,
.write_begin = reiserfs_write_begin,
.write_end = reiserfs_write_end,
.bmap = reiserfs_aop_bmap,
.direct_IO = reiserfs_direct_IO,
.set_page_dirty = reiserfs_set_page_dirty,
}

Definition at line 3223 of file inode.c.