Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
inode.c File Reference
#include <linux/kernel.h>
#include <linux/bio.h>
#include <linux/buffer_head.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/pagemap.h>
#include <linux/highmem.h>
#include <linux/time.h>
#include <linux/init.h>
#include <linux/string.h>
#include <linux/backing-dev.h>
#include <linux/mpage.h>
#include <linux/swap.h>
#include <linux/writeback.h>
#include <linux/statfs.h>
#include <linux/compat.h>
#include <linux/bit_spinlock.h>
#include <linux/xattr.h>
#include <linux/posix_acl.h>
#include <linux/falloc.h>
#include <linux/slab.h>
#include <linux/ratelimit.h>
#include <linux/mount.h>
#include "compat.h"
#include "ctree.h"
#include "disk-io.h"
#include "transaction.h"
#include "btrfs_inode.h"
#include "ioctl.h"
#include "print-tree.h"
#include "ordered-data.h"
#include "xattr.h"
#include "tree-log.h"
#include "volumes.h"
#include "compression.h"
#include "locking.h"
#include "free-space-cache.h"
#include "inode-map.h"

Go to the source code of this file.

Data Structures

struct  btrfs_iget_args
 
struct  async_extent
 
struct  async_cow
 
struct  btrfs_writepage_fixup
 
struct  delayed_iput
 
struct  btrfs_dio_private
 

Macros

#define S_SHIFT   12
 

Enumerations

enum  btrfs_orphan_cleanup_state { ORPHAN_CLEANUP_STARTED = 1, ORPHAN_CLEANUP_DONE = 2 }
 

Functions

int btrfs_merge_bio_hook (struct page *page, unsigned long offset, size_t size, struct bio *bio, unsigned long bio_flags)
 
int btrfs_set_extent_delalloc (struct inode *inode, u64 start, u64 end, struct extent_state **cached_state)
 
void btrfs_add_delayed_iput (struct inode *inode)
 
void btrfs_run_delayed_iputs (struct btrfs_root *root)
 
void btrfs_orphan_commit_root (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_orphan_add (struct btrfs_trans_handle *trans, struct inode *inode)
 
int btrfs_orphan_del (struct btrfs_trans_handle *trans, struct inode *inode)
 
int btrfs_orphan_cleanup (struct btrfs_root *root)
 
noinline int btrfs_update_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode)
 
noinline int btrfs_update_inode_fallback (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode)
 
int btrfs_unlink_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, struct inode *inode, const char *name, int name_len)
 
int btrfs_unlink_subvol (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, u64 objectid, const char *name, int name_len)
 
int btrfs_truncate_inode_items (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type)
 
int btrfs_truncate_page (struct inode *inode, loff_t from, loff_t len, int front)
 
int btrfs_cont_expand (struct inode *inode, loff_t oldsize, loff_t size)
 
void btrfs_evict_inode (struct inode *inode)
 
void btrfs_invalidate_inodes (struct btrfs_root *root)
 
struct inodebtrfs_iget (struct super_block *s, struct btrfs_key *location, struct btrfs_root *root, int *new)
 
struct inodebtrfs_lookup_dentry (struct inode *dir, struct dentry *dentry)
 
int btrfs_write_inode (struct inode *inode, struct writeback_control *wbc)
 
int btrfs_dirty_inode (struct inode *inode)
 
int btrfs_set_inode_index (struct inode *dir, u64 *index)
 
int btrfs_add_link (struct btrfs_trans_handle *trans, struct inode *parent_inode, struct inode *inode, const char *name, int name_len, int add_backref, u64 index)
 
struct extent_mapbtrfs_get_extent (struct inode *inode, struct page *page, size_t pg_offset, u64 start, u64 len, int create)
 
struct extent_mapbtrfs_get_extent_fiemap (struct inode *inode, struct page *page, size_t pg_offset, u64 start, u64 len, int create)
 
int btrfs_readpage (struct file *file, struct page *page)
 
int btrfs_writepages (struct address_space *mapping, struct writeback_control *wbc)
 
int btrfs_page_mkwrite (struct vm_area_struct *vma, struct vm_fault *vmf)
 
int btrfs_create_subvol_root (struct btrfs_trans_handle *trans, struct btrfs_root *new_root, u64 new_dirid)
 
struct inodebtrfs_alloc_inode (struct super_block *sb)
 
void btrfs_destroy_inode (struct inode *inode)
 
int btrfs_drop_inode (struct inode *inode)
 
void btrfs_destroy_cachep (void)
 
int btrfs_init_cachep (void)
 
int btrfs_start_delalloc_inodes (struct btrfs_root *root, int delay_iput)
 
int btrfs_prealloc_file_range (struct inode *inode, int mode, u64 start, u64 num_bytes, u64 min_size, loff_t actual_len, u64 *alloc_hint)
 
int btrfs_prealloc_file_range_trans (struct inode *inode, struct btrfs_trans_handle *trans, int mode, u64 start, u64 num_bytes, u64 min_size, loff_t actual_len, u64 *alloc_hint)
 

Variables

struct kmem_cachebtrfs_trans_handle_cachep
 
struct kmem_cachebtrfs_transaction_cachep
 
struct kmem_cachebtrfs_path_cachep
 
struct kmem_cachebtrfs_free_space_cachep
 
unsigned char btrfs_filetype_table []
 
struct dentry_operations btrfs_dentry_operations
 

Macro Definition Documentation

#define S_SHIFT   12

Definition at line 79 of file inode.c.

Enumeration Type Documentation

Enumerator:
ORPHAN_CLEANUP_STARTED 
ORPHAN_CLEANUP_DONE 

Definition at line 2121 of file inode.c.

Function Documentation

void btrfs_add_delayed_iput ( struct inode inode)

Definition at line 2080 of file inode.c.

int btrfs_add_link ( struct btrfs_trans_handle trans,
struct inode parent_inode,
struct inode inode,
const char name,
int  name_len,
int  add_backref,
u64  index 
)

Definition at line 4811 of file inode.c.

struct inode* btrfs_alloc_inode ( struct super_block sb)
read

Definition at line 7059 of file inode.c.

int btrfs_cont_expand ( struct inode inode,
loff_t  oldsize,
loff_t  size 
)

Definition at line 3585 of file inode.c.

int btrfs_create_subvol_root ( struct btrfs_trans_handle trans,
struct btrfs_root new_root,
u64  new_dirid 
)

Definition at line 7034 of file inode.c.

void btrfs_destroy_cachep ( void  )

Definition at line 7189 of file inode.c.

void btrfs_destroy_inode ( struct inode inode)

Definition at line 7112 of file inode.c.

int btrfs_dirty_inode ( struct inode inode)

Definition at line 4527 of file inode.c.

int btrfs_drop_inode ( struct inode inode)

Definition at line 7171 of file inode.c.

void btrfs_evict_inode ( struct inode inode)

Definition at line 3780 of file inode.c.

struct extent_map* btrfs_get_extent ( struct inode inode,
struct page page,
size_t  pg_offset,
u64  start,
u64  len,
int  create 
)
read

Definition at line 5225 of file inode.c.

struct extent_map* btrfs_get_extent_fiemap ( struct inode inode,
struct page page,
size_t  pg_offset,
u64  start,
u64  len,
int  create 
)
read

Definition at line 5525 of file inode.c.

struct inode* btrfs_iget ( struct super_block s,
struct btrfs_key location,
struct btrfs_root root,
int new 
)
read

Definition at line 4160 of file inode.c.

int btrfs_init_cachep ( void  )

Definition at line 7208 of file inode.c.

void btrfs_invalidate_inodes ( struct btrfs_root root)

Definition at line 4065 of file inode.c.

struct inode* btrfs_lookup_dentry ( struct inode dir,
struct dentry dentry 
)
read

Definition at line 4210 of file inode.c.

int btrfs_merge_bio_hook ( struct page page,
unsigned long  offset,
size_t  size,
struct bio *  bio,
unsigned long  bio_flags 
)

Definition at line 1529 of file inode.c.

int btrfs_orphan_add ( struct btrfs_trans_handle trans,
struct inode inode 
)

Definition at line 2177 of file inode.c.

int btrfs_orphan_cleanup ( struct btrfs_root root)

Definition at line 2289 of file inode.c.

void btrfs_orphan_commit_root ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 2131 of file inode.c.

int btrfs_orphan_del ( struct btrfs_trans_handle trans,
struct inode inode 
)

Definition at line 2255 of file inode.c.

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

Definition at line 6731 of file inode.c.

int btrfs_prealloc_file_range ( struct inode inode,
int  mode,
u64  start,
u64  num_bytes,
u64  min_size,
loff_t  actual_len,
u64 alloc_hint 
)

Definition at line 7734 of file inode.c.

int btrfs_prealloc_file_range_trans ( struct inode inode,
struct btrfs_trans_handle trans,
int  mode,
u64  start,
u64  num_bytes,
u64  min_size,
loff_t  actual_len,
u64 alloc_hint 
)

Definition at line 7743 of file inode.c.

int btrfs_readpage ( struct file file,
struct page page 
)

Definition at line 6591 of file inode.c.

void btrfs_run_delayed_iputs ( struct btrfs_root root)

Definition at line 2096 of file inode.c.

int btrfs_set_extent_delalloc ( struct inode inode,
u64  start,
u64  end,
struct extent_state **  cached_state 
)

Definition at line 1657 of file inode.c.

int btrfs_set_inode_index ( struct inode dir,
u64 index 
)

Definition at line 4641 of file inode.c.

int btrfs_start_delalloc_inodes ( struct btrfs_root root,
int  delay_iput 
)

Definition at line 7454 of file inode.c.

int btrfs_truncate_inode_items ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode,
u64  new_size,
u32  min_type 
)

Definition at line 3236 of file inode.c.

int btrfs_truncate_page ( struct inode inode,
loff_t  from,
loff_t  len,
int  front 
)

Definition at line 3475 of file inode.c.

int btrfs_unlink_inode ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode dir,
struct inode inode,
const char name,
int  name_len 
)

Definition at line 2843 of file inode.c.

int btrfs_unlink_subvol ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode dir,
u64  objectid,
const char name,
int  name_len 
)

Definition at line 3103 of file inode.c.

noinline int btrfs_update_inode ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode 
)

Definition at line 2722 of file inode.c.

noinline int btrfs_update_inode_fallback ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode 
)

Definition at line 2747 of file inode.c.

int btrfs_write_inode ( struct inode inode,
struct writeback_control wbc 
)

Definition at line 4496 of file inode.c.

int btrfs_writepages ( struct address_space mapping,
struct writeback_control wbc 
)

Definition at line 6612 of file inode.c.

Variable Documentation

struct dentry_operations btrfs_dentry_operations
Initial value:
= {
.d_delete = btrfs_dentry_delete,
.d_release = btrfs_dentry_release,
}

Definition at line 7891 of file inode.c.

unsigned char btrfs_filetype_table[]
Initial value:

Definition at line 4309 of file inode.c.

struct kmem_cache* btrfs_free_space_cachep

Definition at line 77 of file inode.c.

struct kmem_cache* btrfs_path_cachep

Definition at line 76 of file inode.c.

struct kmem_cache* btrfs_trans_handle_cachep

Definition at line 74 of file inode.c.

struct kmem_cache* btrfs_transaction_cachep

Definition at line 75 of file inode.c.