#include <linux/blkdev.h>
#include <linux/seq_file.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <trace/events/block.h>
#include "md.h"
#include "raid0.h"
#include "raid5.h"
static int default_layout = …;
module_param(default_layout, int, 0644);
#define UNSUPPORTED_MDDEV_FLAGS …
static void dump_zones(struct mddev *mddev)
{ … }
static int create_strip_zones(struct mddev *mddev, struct r0conf **private_conf)
{ … }
static struct strip_zone *find_zone(struct r0conf *conf,
sector_t *sectorp)
{ … }
static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone,
sector_t sector, sector_t *sector_offset)
{ … }
static sector_t raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks)
{ … }
static void raid0_free(struct mddev *mddev, void *priv)
{ … }
static int raid0_set_limits(struct mddev *mddev)
{ … }
static int raid0_run(struct mddev *mddev)
{ … }
static int map_disk_shift(int disk_index, int num_disks, int disk_shift)
{ … }
static void raid0_handle_discard(struct mddev *mddev, struct bio *bio)
{ … }
static void raid0_map_submit_bio(struct mddev *mddev, struct bio *bio)
{ … }
static bool raid0_make_request(struct mddev *mddev, struct bio *bio)
{ … }
static void raid0_status(struct seq_file *seq, struct mddev *mddev)
{ … }
static void raid0_error(struct mddev *mddev, struct md_rdev *rdev)
{ … }
static void *raid0_takeover_raid45(struct mddev *mddev)
{ … }
static void *raid0_takeover_raid10(struct mddev *mddev)
{ … }
static void *raid0_takeover_raid1(struct mddev *mddev)
{ … }
static void *raid0_takeover(struct mddev *mddev)
{ … }
static void raid0_quiesce(struct mddev *mddev, int quiesce)
{ … }
static struct md_personality raid0_personality= …;
static int __init raid0_init (void)
{ … }
static void raid0_exit (void)
{ … }
module_init(…) …;
module_exit(raid0_exit);
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_ALIAS(…) …;
MODULE_ALIAS(…) …;
MODULE_ALIAS(…) …;