Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
scrub.c File Reference
#include <linux/blkdev.h>
#include <linux/ratelimit.h>
#include "ctree.h"
#include "volumes.h"
#include "disk-io.h"
#include "ordered-data.h"
#include "transaction.h"
#include "backref.h"
#include "extent_io.h"
#include "check-integrity.h"
#include "rcu-string.h"

Go to the source code of this file.

Data Structures

struct  scrub_page
 
struct  scrub_bio
 
struct  scrub_block
 
struct  scrub_dev
 
struct  scrub_fixup_nodatasum
 
struct  scrub_warning
 

Macros

#define SCRUB_PAGES_PER_BIO   16 /* 64k per bio */
 
#define SCRUB_BIOS_PER_DEV   16 /* 1 MB per device in flight */
 
#define SCRUB_MAX_PAGES_PER_BLOCK   16 /* 64k per node/leaf/sector */
 

Functions

int btrfs_scrub_dev (struct btrfs_root *root, u64 devid, u64 start, u64 end, struct btrfs_scrub_progress *progress, int readonly)
 
void btrfs_scrub_pause (struct btrfs_root *root)
 
void btrfs_scrub_continue (struct btrfs_root *root)
 
void btrfs_scrub_pause_super (struct btrfs_root *root)
 
void btrfs_scrub_continue_super (struct btrfs_root *root)
 
int __btrfs_scrub_cancel (struct btrfs_fs_info *fs_info)
 
int btrfs_scrub_cancel (struct btrfs_root *root)
 
int btrfs_scrub_cancel_dev (struct btrfs_root *root, struct btrfs_device *dev)
 
int btrfs_scrub_cancel_devid (struct btrfs_root *root, u64 devid)
 
int btrfs_scrub_progress (struct btrfs_root *root, u64 devid, struct btrfs_scrub_progress *progress)
 

Macro Definition Documentation

#define SCRUB_BIOS_PER_DEV   16 /* 1 MB per device in flight */

Definition at line 48 of file scrub.c.

#define SCRUB_MAX_PAGES_PER_BLOCK   16 /* 64k per node/leaf/sector */

Definition at line 49 of file scrub.c.

#define SCRUB_PAGES_PER_BIO   16 /* 64k per bio */

Definition at line 47 of file scrub.c.

Function Documentation

int __btrfs_scrub_cancel ( struct btrfs_fs_info fs_info)

Definition at line 2380 of file scrub.c.

int btrfs_scrub_cancel ( struct btrfs_root root)

Definition at line 2402 of file scrub.c.

int btrfs_scrub_cancel_dev ( struct btrfs_root root,
struct btrfs_device dev 
)

Definition at line 2407 of file scrub.c.

int btrfs_scrub_cancel_devid ( struct btrfs_root root,
u64  devid 
)

Definition at line 2430 of file scrub.c.

void btrfs_scrub_continue ( struct btrfs_root root)

Definition at line 2362 of file scrub.c.

void btrfs_scrub_continue_super ( struct btrfs_root root)

Definition at line 2375 of file scrub.c.

int btrfs_scrub_dev ( struct btrfs_root root,
u64  devid,
u64  start,
u64  end,
struct btrfs_scrub_progress progress,
int  readonly 
)

Definition at line 2238 of file scrub.c.

void btrfs_scrub_pause ( struct btrfs_root root)

Definition at line 2345 of file scrub.c.

void btrfs_scrub_pause_super ( struct btrfs_root root)

Definition at line 2370 of file scrub.c.

int btrfs_scrub_progress ( struct btrfs_root root,
u64  devid,
struct btrfs_scrub_progress progress 
)

Definition at line 2452 of file scrub.c.