Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
extent_map.c File Reference
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/fiemap.h>
#include <cluster/masklog.h>
#include "ocfs2.h"
#include "alloc.h"
#include "dlmglue.h"
#include "extent_map.h"
#include "inode.h"
#include "super.h"
#include "symlink.h"
#include "ocfs2_trace.h"
#include "buffer_head_io.h"

Go to the source code of this file.

Macros

#define OCFS2_FIEMAP_FLAGS   (FIEMAP_FLAG_SYNC)
 

Functions

void ocfs2_extent_map_init (struct inode *inode)
 
void ocfs2_extent_map_trunc (struct inode *inode, unsigned int cpos)
 
void ocfs2_extent_map_insert_rec (struct inode *inode, struct ocfs2_extent_rec *rec)
 
int ocfs2_figure_hole_clusters (struct ocfs2_caching_info *ci, struct ocfs2_extent_list *el, struct buffer_head *eb_bh, u32 v_cluster, u32 *num_clusters)
 
int ocfs2_xattr_get_clusters (struct inode *inode, u32 v_cluster, u32 *p_cluster, u32 *num_clusters, struct ocfs2_extent_list *el, unsigned int *extent_flags)
 
int ocfs2_get_clusters (struct inode *inode, u32 v_cluster, u32 *p_cluster, u32 *num_clusters, unsigned int *extent_flags)
 
int ocfs2_extent_map_get_blocks (struct inode *inode, u64 v_blkno, u64 *p_blkno, u64 *ret_count, unsigned int *extent_flags)
 
int ocfs2_fiemap (struct inode *inode, struct fiemap_extent_info *fieinfo, u64 map_start, u64 map_len)
 
int ocfs2_seek_data_hole_offset (struct file *file, loff_t *offset, int origin)
 
int ocfs2_read_virt_blocks (struct inode *inode, u64 v_block, int nr, struct buffer_head *bhs[], int flags, int(*validate)(struct super_block *sb, struct buffer_head *bh))
 

Macro Definition Documentation

#define OCFS2_FIEMAP_FLAGS   (FIEMAP_FLAG_SYNC)

Definition at line 748 of file extent_map.c.

Function Documentation

int ocfs2_extent_map_get_blocks ( struct inode inode,
u64  v_blkno,
u64 p_blkno,
u64 ret_count,
unsigned int extent_flags 
)

Definition at line 672 of file extent_map.c.

void ocfs2_extent_map_init ( struct inode inode)

Definition at line 54 of file extent_map.c.

void ocfs2_extent_map_insert_rec ( struct inode inode,
struct ocfs2_extent_rec rec 
)

Definition at line 227 of file extent_map.c.

void ocfs2_extent_map_trunc ( struct inode inode,
unsigned int  cpos 
)

Definition at line 114 of file extent_map.c.

int ocfs2_fiemap ( struct inode inode,
struct fiemap_extent_info fieinfo,
u64  map_start,
u64  map_len 
)

Definition at line 750 of file extent_map.c.

int ocfs2_figure_hole_clusters ( struct ocfs2_caching_info ci,
struct ocfs2_extent_list el,
struct buffer_head *  eb_bh,
u32  v_cluster,
u32 num_clusters 
)

Definition at line 358 of file extent_map.c.

int ocfs2_get_clusters ( struct inode inode,
u32  v_cluster,
u32 p_cluster,
u32 num_clusters,
unsigned int extent_flags 
)

Definition at line 609 of file extent_map.c.

int ocfs2_read_virt_blocks ( struct inode inode,
u64  v_block,
int  nr,
struct buffer_head *  bhs[],
int  flags,
int(*)(struct super_block *sb, struct buffer_head *bh)  validate 
)

Definition at line 929 of file extent_map.c.

int ocfs2_seek_data_hole_offset ( struct file file,
loff_t *  offset,
int  origin 
)

Definition at line 835 of file extent_map.c.

int ocfs2_xattr_get_clusters ( struct inode inode,
u32  v_cluster,
u32 p_cluster,
u32 num_clusters,
struct ocfs2_extent_list el,
unsigned int extent_flags 
)

Definition at line 544 of file extent_map.c.