Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions | Variables
bitmap.c File Reference
#include <linux/blkdev.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/timer.h>
#include <linux/sched.h>
#include <linux/list.h>
#include <linux/file.h>
#include <linux/mount.h>
#include <linux/buffer_head.h>
#include <linux/seq_file.h>
#include "md.h"
#include "bitmap.h"

Go to the source code of this file.

Enumerations

enum  bitmap_page_attr { BITMAP_PAGE_DIRTY = 0, BITMAP_PAGE_PENDING = 1, BITMAP_PAGE_NEEDWRITE = 2 }
 

Functions

void bitmap_update_sb (struct bitmap *bitmap)
 
void bitmap_print_sb (struct bitmap *bitmap)
 
void bitmap_unplug (struct bitmap *bitmap)
 
 EXPORT_SYMBOL (bitmap_unplug)
 
void bitmap_write_all (struct bitmap *bitmap)
 
void bitmap_daemon_work (struct mddev *mddev)
 
int bitmap_startwrite (struct bitmap *bitmap, sector_t offset, unsigned long sectors, int behind)
 
 EXPORT_SYMBOL (bitmap_startwrite)
 
void bitmap_endwrite (struct bitmap *bitmap, sector_t offset, unsigned long sectors, int success, int behind)
 
 EXPORT_SYMBOL (bitmap_endwrite)
 
int bitmap_start_sync (struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded)
 
 EXPORT_SYMBOL (bitmap_start_sync)
 
void bitmap_end_sync (struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted)
 
 EXPORT_SYMBOL (bitmap_end_sync)
 
void bitmap_close_sync (struct bitmap *bitmap)
 
 EXPORT_SYMBOL (bitmap_close_sync)
 
void bitmap_cond_end_sync (struct bitmap *bitmap, sector_t sector)
 
 EXPORT_SYMBOL (bitmap_cond_end_sync)
 
void bitmap_dirty_bits (struct bitmap *bitmap, unsigned long s, unsigned long e)
 
void bitmap_flush (struct mddev *mddev)
 
void bitmap_destroy (struct mddev *mddev)
 
int bitmap_create (struct mddev *mddev)
 
int bitmap_load (struct mddev *mddev)
 
 EXPORT_SYMBOL_GPL (bitmap_load)
 
void bitmap_status (struct seq_file *seq, struct bitmap *bitmap)
 
int bitmap_resize (struct bitmap *bitmap, sector_t blocks, int chunksize, int init)
 
 EXPORT_SYMBOL_GPL (bitmap_resize)
 

Variables

struct attribute_group md_bitmap_group
 

Enumeration Type Documentation

Enumerator:
BITMAP_PAGE_DIRTY 
BITMAP_PAGE_PENDING 
BITMAP_PAGE_NEEDWRITE 

Definition at line 794 of file bitmap.c.

Function Documentation

void bitmap_close_sync ( struct bitmap bitmap)

Definition at line 1465 of file bitmap.c.

void bitmap_cond_end_sync ( struct bitmap bitmap,
sector_t  sector 
)

Definition at line 1482 of file bitmap.c.

int bitmap_create ( struct mddev mddev)

Definition at line 1632 of file bitmap.c.

void bitmap_daemon_work ( struct mddev mddev)

Definition at line 1101 of file bitmap.c.

void bitmap_destroy ( struct mddev mddev)

Definition at line 1609 of file bitmap.c.

void bitmap_dirty_bits ( struct bitmap bitmap,
unsigned long  s,
unsigned long  e 
)

Definition at line 1537 of file bitmap.c.

void bitmap_end_sync ( struct bitmap bitmap,
sector_t  offset,
sector_t blocks,
int  aborted 
)

Definition at line 1434 of file bitmap.c.

void bitmap_endwrite ( struct bitmap bitmap,
sector_t  offset,
unsigned long  sectors,
int  success,
int  behind 
)

Definition at line 1329 of file bitmap.c.

void bitmap_flush ( struct mddev mddev)

Definition at line 1557 of file bitmap.c.

int bitmap_load ( struct mddev mddev)

Definition at line 1710 of file bitmap.c.

void bitmap_print_sb ( struct bitmap bitmap)

Definition at line 430 of file bitmap.c.

int bitmap_resize ( struct bitmap bitmap,
sector_t  blocks,
int  chunksize,
int  init 
)

Definition at line 1788 of file bitmap.c.

int bitmap_start_sync ( struct bitmap bitmap,
sector_t  offset,
sector_t blocks,
int  degraded 
)

Definition at line 1410 of file bitmap.c.

int bitmap_startwrite ( struct bitmap bitmap,
sector_t  offset,
unsigned long  sectors,
int  behind 
)

Definition at line 1265 of file bitmap.c.

void bitmap_status ( struct seq_file seq,
struct bitmap bitmap 
)

Definition at line 1761 of file bitmap.c.

void bitmap_unplug ( struct bitmap bitmap)

Definition at line 882 of file bitmap.c.

void bitmap_update_sb ( struct bitmap bitmap)

Definition at line 400 of file bitmap.c.

void bitmap_write_all ( struct bitmap bitmap)

Definition at line 1054 of file bitmap.c.

EXPORT_SYMBOL ( bitmap_unplug  )
EXPORT_SYMBOL ( bitmap_startwrite  )
EXPORT_SYMBOL ( bitmap_endwrite  )
EXPORT_SYMBOL ( bitmap_start_sync  )
EXPORT_SYMBOL ( bitmap_end_sync  )
EXPORT_SYMBOL ( bitmap_close_sync  )
EXPORT_SYMBOL ( bitmap_cond_end_sync  )
EXPORT_SYMBOL_GPL ( bitmap_load  )
EXPORT_SYMBOL_GPL ( bitmap_resize  )

Variable Documentation

struct attribute_group md_bitmap_group
Initial value:
= {
.name = "bitmap",
.attrs = md_bitmap_attrs,
}

Definition at line 2266 of file bitmap.c.