Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
file.c File Reference
#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/falloc.h>
#include <linux/swap.h>
#include <linux/writeback.h>
#include <linux/statfs.h>
#include <linux/compat.h>
#include <linux/slab.h>
#include "ctree.h"
#include "disk-io.h"
#include "transaction.h"
#include "btrfs_inode.h"
#include "ioctl.h"
#include "print-tree.h"
#include "tree-log.h"
#include "locking.h"
#include "compat.h"
#include "volumes.h"

Go to the source code of this file.

Data Structures

struct  inode_defrag
 

Functions

int btrfs_add_inode_defrag (struct btrfs_trans_handle *trans, struct inode *inode)
 
struct inode_defragbtrfs_find_defrag_inode (struct btrfs_fs_info *info, u64 root, u64 ino, struct rb_node **next)
 
int btrfs_run_defrag_inodes (struct btrfs_fs_info *fs_info)
 
void btrfs_drop_pages (struct page **pages, size_t num_pages)
 
int btrfs_dirty_pages (struct btrfs_root *root, struct inode *inode, struct page **pages, size_t num_pages, loff_t pos, size_t write_bytes, struct extent_state **cached)
 
void btrfs_drop_extent_cache (struct inode *inode, u64 start, u64 end, int skip_pinned)
 
int __btrfs_drop_extents (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, struct btrfs_path *path, u64 start, u64 end, u64 *drop_end, int drop_cache)
 
int btrfs_drop_extents (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 start, u64 end, int drop_cache)
 
int btrfs_mark_extent_written (struct btrfs_trans_handle *trans, struct inode *inode, u64 start, u64 end)
 
int btrfs_release_file (struct inode *inode, struct file *filp)
 
int btrfs_sync_file (struct file *file, loff_t start, loff_t end, int datasync)
 

Variables

struct file_operations btrfs_file_operations
 

Function Documentation

int __btrfs_drop_extents ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode,
struct btrfs_path path,
u64  start,
u64  end,
u64 drop_end,
int  drop_cache 
)

Definition at line 590 of file file.c.

int btrfs_add_inode_defrag ( struct btrfs_trans_handle trans,
struct inode inode 
)

Definition at line 139 of file file.c.

int btrfs_dirty_pages ( struct btrfs_root root,
struct inode inode,
struct page **  pages,
size_t  num_pages,
loff_t  pos,
size_t  write_bytes,
struct extent_state **  cached 
)

Definition at line 418 of file file.c.

void btrfs_drop_extent_cache ( struct inode inode,
u64  start,
u64  end,
int  skip_pinned 
)

Definition at line 462 of file file.c.

int btrfs_drop_extents ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode,
u64  start,
u64  end,
int  drop_cache 
)

Definition at line 839 of file file.c.

void btrfs_drop_pages ( struct page **  pages,
size_t  num_pages 
)

Definition at line 395 of file file.c.

struct inode_defrag* btrfs_find_defrag_inode ( struct btrfs_fs_info info,
u64  root,
u64  ino,
struct rb_node **  next 
)
read

Definition at line 180 of file file.c.

int btrfs_mark_extent_written ( struct btrfs_trans_handle trans,
struct inode inode,
u64  start,
u64  end 
)

Definition at line 895 of file file.c.

int btrfs_release_file ( struct inode inode,
struct file filp 
)

Definition at line 1509 of file file.c.

int btrfs_run_defrag_inodes ( struct btrfs_fs_info fs_info)

Definition at line 221 of file file.c.

int btrfs_sync_file ( struct file file,
loff_t  start,
loff_t  end,
int  datasync 
)

Definition at line 1539 of file file.c.

Variable Documentation

struct file_operations btrfs_file_operations
Initial value:
= {
.llseek = btrfs_file_llseek,
.read = do_sync_read,
.write = do_sync_write,
.aio_read = generic_file_aio_read,
.splice_read = generic_file_splice_read,
.aio_write = btrfs_file_aio_write,
.mmap = btrfs_file_mmap,
.release = btrfs_release_file,
.fsync = btrfs_sync_file,
.fallocate = btrfs_fallocate,
.unlocked_ioctl = btrfs_ioctl,
}

Definition at line 2279 of file file.c.