Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
inode.c File Reference
#include <linux/fs.h>
#include <linux/time.h>
#include <linux/jbd2.h>
#include <linux/highuid.h>
#include <linux/pagemap.h>
#include <linux/quotaops.h>
#include <linux/string.h>
#include <linux/buffer_head.h>
#include <linux/writeback.h>
#include <linux/pagevec.h>
#include <linux/mpage.h>
#include <linux/namei.h>
#include <linux/uio.h>
#include <linux/bio.h>
#include <linux/workqueue.h>
#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/slab.h>
#include <linux/ratelimit.h>
#include "ext4_jbd2.h"
#include "xattr.h"
#include "acl.h"
#include "truncate.h"
#include <trace/events/ext4.h>

Go to the source code of this file.

Macros

#define MPAGE_DA_EXTENT_TAIL   0x01
 
#define check_block_validity(inode, map)   __check_block_validity((inode), __func__, __LINE__, (map))
 
#define DIO_MAX_BLOCKS   4096
 
#define BH_FLAGS
 
#define FALL_BACK_TO_NONDELALLOC   1
 

Functions

int ext4_truncate_restart_trans (handle_t *handle, struct inode *inode, int nblocks)
 
void ext4_evict_inode (struct inode *inode)
 
void ext4_da_update_reserve_space (struct inode *inode, int used, int quota_claim)
 
int ext4_map_blocks (handle_t *handle, struct inode *inode, struct ext4_map_blocks *map, int flags)
 
int ext4_get_block (struct inode *inode, sector_t iblock, struct buffer_head *bh, int create)
 
struct buffer_head * ext4_getblk (handle_t *handle, struct inode *inode, ext4_lblk_t block, int create, int *errp)
 
struct buffer_head * ext4_bread (handle_t *handle, struct inode *inode, ext4_lblk_t block, int create, int *err)
 
int ext4_alloc_da_blocks (struct inode *inode)
 
void ext4_set_aops (struct inode *inode)
 
int ext4_discard_partial_page_buffers (handle_t *handle, struct address_space *mapping, loff_t from, loff_t length, int flags)
 
int ext4_can_truncate (struct inode *inode)
 
int ext4_punch_hole (struct file *file, loff_t offset, loff_t length)
 
void ext4_truncate (struct inode *inode)
 
int ext4_get_inode_loc (struct inode *inode, struct ext4_iloc *iloc)
 
void ext4_set_inode_flags (struct inode *inode)
 
void ext4_get_inode_flags (struct ext4_inode_info *ei)
 
struct inodeext4_iget (struct super_block *sb, unsigned long ino)
 
int ext4_write_inode (struct inode *inode, struct writeback_control *wbc)
 
int ext4_setattr (struct dentry *dentry, struct iattr *attr)
 
int ext4_getattr (struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
 
int ext4_writepage_trans_blocks (struct inode *inode)
 
int ext4_chunk_trans_blocks (struct inode *inode, int nrblocks)
 
int ext4_mark_iloc_dirty (handle_t *handle, struct inode *inode, struct ext4_iloc *iloc)
 
int ext4_reserve_inode_write (handle_t *handle, struct inode *inode, struct ext4_iloc *iloc)
 
int ext4_mark_inode_dirty (handle_t *handle, struct inode *inode)
 
void ext4_dirty_inode (struct inode *inode, int flags)
 
int ext4_change_inode_journal_flag (struct inode *inode, int val)
 
int ext4_page_mkwrite (struct vm_area_struct *vma, struct vm_fault *vmf)
 

Macro Definition Documentation

#define BH_FLAGS
Value:
((1 << BH_Uptodate) | (1 << BH_Mapped) | \
(1 << BH_Delay) | (1 << BH_Unwritten))

Definition at line 1690 of file inode.c.

#define check_block_validity (   inode,
  map 
)    __check_block_validity((inode), __func__, __LINE__, (map))

Definition at line 423 of file inode.c.

#define DIO_MAX_BLOCKS   4096

Definition at line 673 of file inode.c.

#define FALL_BACK_TO_NONDELALLOC   1

Definition at line 2448 of file inode.c.

#define MPAGE_DA_EXTENT_TAIL   0x01

Definition at line 48 of file inode.c.

Function Documentation

int ext4_alloc_da_blocks ( struct inode inode)

Definition at line 2662 of file inode.c.

struct buffer_head* ext4_bread ( handle_t *  handle,
struct inode inode,
ext4_lblk_t  block,
int  create,
int err 
)
read

Definition at line 782 of file inode.c.

int ext4_can_truncate ( struct inode inode)

Definition at line 3453 of file inode.c.

int ext4_change_inode_journal_flag ( struct inode inode,
int  val 
)

Definition at line 4692 of file inode.c.

int ext4_chunk_trans_blocks ( struct inode inode,
int  nrblocks 
)

Definition at line 4492 of file inode.c.

void ext4_da_update_reserve_space ( struct inode inode,
int  used,
int  quota_claim 
)

Definition at line 340 of file inode.c.

void ext4_dirty_inode ( struct inode inode,
int  flags 
)

Definition at line 4647 of file inode.c.

int ext4_discard_partial_page_buffers ( handle_t *  handle,
struct address_space mapping,
loff_t  from,
loff_t  length,
int  flags 
)

Definition at line 3259 of file inode.c.

void ext4_evict_inode ( struct inode inode)

Definition at line 185 of file inode.c.

int ext4_get_block ( struct inode inode,
sector_t  iblock,
struct buffer_head *  bh,
int  create 
)

Definition at line 711 of file inode.c.

void ext4_get_inode_flags ( struct ext4_inode_info ei)

Definition at line 3712 of file inode.c.

int ext4_get_inode_loc ( struct inode inode,
struct ext4_iloc *  iloc 
)

Definition at line 3687 of file inode.c.

int ext4_getattr ( struct vfsmount mnt,
struct dentry dentry,
struct kstat stat 
)

Definition at line 4372 of file inode.c.

struct buffer_head* ext4_getblk ( handle_t *  handle,
struct inode inode,
ext4_lblk_t  block,
int  create,
int errp 
)
read

Definition at line 721 of file inode.c.

struct inode* ext4_iget ( struct super_block sb,
unsigned long  ino 
)
read

Definition at line 3759 of file inode.c.

int ext4_map_blocks ( handle_t *  handle,
struct inode inode,
struct ext4_map_blocks map,
int  flags 
)

Definition at line 551 of file inode.c.

int ext4_mark_iloc_dirty ( handle_t *  handle,
struct inode inode,
struct ext4_iloc *  iloc 
)

Definition at line 4501 of file inode.c.

int ext4_mark_inode_dirty ( handle_t *  handle,
struct inode inode 
)

Definition at line 4588 of file inode.c.

int ext4_page_mkwrite ( struct vm_area_struct vma,
struct vm_fault *  vmf 
)

Definition at line 4769 of file inode.c.

int ext4_punch_hole ( struct file file,
loff_t  offset,
loff_t  length 
)

Definition at line 3475 of file inode.c.

int ext4_reserve_inode_write ( handle_t *  handle,
struct inode inode,
struct ext4_iloc *  iloc 
)

Definition at line 4524 of file inode.c.

void ext4_set_aops ( struct inode inode)

Definition at line 3227 of file inode.c.

void ext4_set_inode_flags ( struct inode inode)

Definition at line 3694 of file inode.c.

int ext4_setattr ( struct dentry dentry,
struct iattr attr 
)

Definition at line 4247 of file inode.c.

void ext4_truncate ( struct inode inode)

Definition at line 3522 of file inode.c.

int ext4_truncate_restart_trans ( handle_t *  handle,
struct inode inode,
int  nblocks 
)

Definition at line 161 of file inode.c.

int ext4_write_inode ( struct inode inode,
struct writeback_control wbc 
)

Definition at line 4187 of file inode.c.

int ext4_writepage_trans_blocks ( struct inode inode)

Definition at line 4470 of file inode.c.