Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
refcounttree.h File Reference

Go to the source code of this file.

Data Structures

struct  ocfs2_refcount_tree
 
struct  ocfs2_post_refcount
 

Typedefs

typedef intocfs2_post_refcount_func )(struct inode *inode, handle_t *handle, void *para)
 

Functions

void ocfs2_purge_refcount_trees (struct ocfs2_super *osb)
 
int ocfs2_lock_refcount_tree (struct ocfs2_super *osb, u64 ref_blkno, int rw, struct ocfs2_refcount_tree **tree, struct buffer_head **ref_bh)
 
void ocfs2_unlock_refcount_tree (struct ocfs2_super *osb, struct ocfs2_refcount_tree *tree, int rw)
 
int ocfs2_decrease_refcount (struct inode *inode, handle_t *handle, u32 cpos, u32 len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc, int delete)
 
int ocfs2_prepare_refcount_change_for_del (struct inode *inode, u64 refcount_loc, u64 phys_blkno, u32 clusters, int *credits, int *ref_blocks)
 
int ocfs2_refcount_cow (struct inode *inode, struct file *filep, struct buffer_head *di_bh, u32 cpos, u32 write_len, u32 max_cpos)
 
int ocfs2_refcounted_xattr_delete_need (struct inode *inode, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, struct ocfs2_xattr_value_root *xv, int *meta_add, int *credits)
 
int ocfs2_refcount_cow_xattr (struct inode *inode, struct ocfs2_dinode *di, struct ocfs2_xattr_value_buf *vb, struct ocfs2_refcount_tree *ref_tree, struct buffer_head *ref_root_bh, u32 cpos, u32 write_len, struct ocfs2_post_refcount *post)
 
int ocfs2_duplicate_clusters_by_page (handle_t *handle, struct file *file, u32 cpos, u32 old_cluster, u32 new_cluster, u32 new_len)
 
int ocfs2_duplicate_clusters_by_jbd (handle_t *handle, struct file *file, u32 cpos, u32 old_cluster, u32 new_cluster, u32 new_len)
 
int ocfs2_cow_sync_writeback (struct super_block *sb, struct inode *inode, u32 cpos, u32 num_clusters)
 
int ocfs2_add_refcount_flag (struct inode *inode, struct ocfs2_extent_tree *data_et, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, u32 cpos, u32 p_cluster, u32 num_clusters, struct ocfs2_cached_dealloc_ctxt *dealloc, struct ocfs2_post_refcount *post)
 
int ocfs2_remove_refcount_tree (struct inode *inode, struct buffer_head *di_bh)
 
int ocfs2_try_remove_refcount_tree (struct inode *inode, struct buffer_head *di_bh)
 
int ocfs2_increase_refcount (handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *ref_root_bh, u64 cpos, u32 len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc)
 
int ocfs2_reflink_ioctl (struct inode *inode, const char __user *oldname, const char __user *newname, bool preserve)
 

Typedef Documentation

typedef int( ocfs2_post_refcount_func)(struct inode *inode, handle_t *handle, void *para)

Definition at line 59 of file refcounttree.h.

Function Documentation

int ocfs2_add_refcount_flag ( struct inode inode,
struct ocfs2_extent_tree data_et,
struct ocfs2_caching_info ref_ci,
struct buffer_head *  ref_root_bh,
u32  cpos,
u32  p_cluster,
u32  num_clusters,
struct ocfs2_cached_dealloc_ctxt dealloc,
struct ocfs2_post_refcount post 
)

Definition at line 3735 of file refcounttree.c.

int ocfs2_cow_sync_writeback ( struct super_block sb,
struct inode inode,
u32  cpos,
u32  num_clusters 
)

Definition at line 3165 of file refcounttree.c.

int ocfs2_decrease_refcount ( struct inode inode,
handle_t *  handle,
u32  cpos,
u32  len,
struct ocfs2_alloc_context meta_ac,
struct ocfs2_cached_dealloc_ctxt dealloc,
int  delete 
)

Definition at line 2296 of file refcounttree.c.

int ocfs2_duplicate_clusters_by_jbd ( handle_t *  handle,
struct file file,
u32  cpos,
u32  old_cluster,
u32  new_cluster,
u32  new_len 
)

Definition at line 3017 of file refcounttree.c.

int ocfs2_duplicate_clusters_by_page ( handle_t *  handle,
struct file file,
u32  cpos,
u32  old_cluster,
u32  new_cluster,
u32  new_len 
)

Definition at line 2924 of file refcounttree.c.

int ocfs2_increase_refcount ( handle_t *  handle,
struct ocfs2_caching_info ci,
struct buffer_head *  ref_root_bh,
u64  cpos,
u32  len,
struct ocfs2_alloc_context meta_ac,
struct ocfs2_cached_dealloc_ctxt dealloc 
)

Definition at line 2162 of file refcounttree.c.

int ocfs2_lock_refcount_tree ( struct ocfs2_super osb,
u64  ref_blkno,
int  rw,
struct ocfs2_refcount_tree **  tree,
struct buffer_head **  ref_bh 
)

Definition at line 452 of file refcounttree.c.

int ocfs2_prepare_refcount_change_for_del ( struct inode inode,
u64  refcount_loc,
u64  phys_blkno,
u32  clusters,
int credits,
int ref_blocks 
)

Definition at line 2535 of file refcounttree.c.

void ocfs2_purge_refcount_trees ( struct ocfs2_super osb)

Definition at line 538 of file refcounttree.c.

int ocfs2_refcount_cow ( struct inode inode,
struct file filep,
struct buffer_head *  di_bh,
u32  cpos,
u32  write_len,
u32  max_cpos 
)

Definition at line 3534 of file refcounttree.c.

int ocfs2_refcount_cow_xattr ( struct inode inode,
struct ocfs2_dinode di,
struct ocfs2_xattr_value_buf vb,
struct ocfs2_refcount_tree ref_tree,
struct buffer_head *  ref_root_bh,
u32  cpos,
u32  write_len,
struct ocfs2_post_refcount post 
)

Definition at line 3672 of file refcounttree.c.

int ocfs2_refcounted_xattr_delete_need ( struct inode inode,
struct ocfs2_caching_info ref_ci,
struct buffer_head *  ref_root_bh,
struct ocfs2_xattr_value_root xv,
int meta_add,
int credits 
)

Definition at line 3587 of file refcounttree.c.

int ocfs2_reflink_ioctl ( struct inode inode,
const char __user oldname,
const char __user newname,
bool  preserve 
)

Definition at line 4438 of file refcounttree.c.

int ocfs2_remove_refcount_tree ( struct inode inode,
struct buffer_head *  di_bh 
)

Definition at line 759 of file refcounttree.c.

int ocfs2_try_remove_refcount_tree ( struct inode inode,
struct buffer_head *  di_bh 
)

Definition at line 928 of file refcounttree.c.

void ocfs2_unlock_refcount_tree ( struct ocfs2_super osb,
struct ocfs2_refcount_tree tree,
int  rw 
)

Definition at line 526 of file refcounttree.c.