Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
blockcheck.c File Reference
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/crc32.h>
#include <linux/buffer_head.h>
#include <linux/bitops.h>
#include <linux/debugfs.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <asm/byteorder.h>
#include <cluster/masklog.h>
#include "ocfs2.h"
#include "blockcheck.h"

Go to the source code of this file.

Functions

u32 ocfs2_hamming_encode (u32 parity, void *data, unsigned int d, unsigned int nr)
 
u32 ocfs2_hamming_encode_block (void *data, unsigned int blocksize)
 
void ocfs2_hamming_fix (void *data, unsigned int d, unsigned int nr, unsigned int fix)
 
void ocfs2_hamming_fix_block (void *data, unsigned int blocksize, unsigned int fix)
 
int ocfs2_blockcheck_stats_debugfs_install (struct ocfs2_blockcheck_stats *stats, struct dentry *parent)
 
void ocfs2_blockcheck_stats_debugfs_remove (struct ocfs2_blockcheck_stats *stats)
 
void ocfs2_block_check_compute (void *data, size_t blocksize, struct ocfs2_block_check *bc)
 
int ocfs2_block_check_validate (void *data, size_t blocksize, struct ocfs2_block_check *bc, struct ocfs2_blockcheck_stats *stats)
 
void ocfs2_block_check_compute_bhs (struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc)
 
int ocfs2_block_check_validate_bhs (struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc, struct ocfs2_blockcheck_stats *stats)
 
void ocfs2_compute_meta_ecc (struct super_block *sb, void *data, struct ocfs2_block_check *bc)
 
int ocfs2_validate_meta_ecc (struct super_block *sb, void *data, struct ocfs2_block_check *bc)
 
void ocfs2_compute_meta_ecc_bhs (struct super_block *sb, struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc)
 
int ocfs2_validate_meta_ecc_bhs (struct super_block *sb, struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc)
 

Function Documentation

void ocfs2_block_check_compute ( void data,
size_t  blocksize,
struct ocfs2_block_check bc 
)

Definition at line 391 of file blockcheck.c.

void ocfs2_block_check_compute_bhs ( struct buffer_head **  bhs,
int  nr,
struct ocfs2_block_check bc 
)

Definition at line 483 of file blockcheck.c.

int ocfs2_block_check_validate ( void data,
size_t  blocksize,
struct ocfs2_block_check bc,
struct ocfs2_blockcheck_stats stats 
)

Definition at line 420 of file blockcheck.c.

int ocfs2_block_check_validate_bhs ( struct buffer_head **  bhs,
int  nr,
struct ocfs2_block_check bc,
struct ocfs2_blockcheck_stats stats 
)

Definition at line 527 of file blockcheck.c.

int ocfs2_blockcheck_stats_debugfs_install ( struct ocfs2_blockcheck_stats stats,
struct dentry parent 
)

Definition at line 312 of file blockcheck.c.

void ocfs2_blockcheck_stats_debugfs_remove ( struct ocfs2_blockcheck_stats stats)

Definition at line 318 of file blockcheck.c.

void ocfs2_compute_meta_ecc ( struct super_block sb,
void data,
struct ocfs2_block_check bc 
)

Definition at line 606 of file blockcheck.c.

void ocfs2_compute_meta_ecc_bhs ( struct super_block sb,
struct buffer_head **  bhs,
int  nr,
struct ocfs2_block_check bc 
)

Definition at line 626 of file blockcheck.c.

u32 ocfs2_hamming_encode ( u32  parity,
void data,
unsigned int  d,
unsigned int  nr 
)

Definition at line 107 of file blockcheck.c.

u32 ocfs2_hamming_encode_block ( void data,
unsigned int  blocksize 
)

Definition at line 154 of file blockcheck.c.

void ocfs2_hamming_fix ( void data,
unsigned int  d,
unsigned int  nr,
unsigned int  fix 
)

Definition at line 166 of file blockcheck.c.

void ocfs2_hamming_fix_block ( void data,
unsigned int  blocksize,
unsigned int  fix 
)

Definition at line 222 of file blockcheck.c.

int ocfs2_validate_meta_ecc ( struct super_block sb,
void data,
struct ocfs2_block_check bc 
)

Definition at line 613 of file blockcheck.c.

int ocfs2_validate_meta_ecc_bhs ( struct super_block sb,
struct buffer_head **  bhs,
int  nr,
struct ocfs2_block_check bc 
)

Definition at line 634 of file blockcheck.c.