#include "persistent-data/dm-transaction-manager.h"
#include "persistent-data/dm-bitset.h"
#include "persistent-data/dm-space-map.h"
#include <linux/dm-kcopyd.h>
#include <linux/mempool.h>
#include <linux/module.h>
#include <linux/vmalloc.h>
#define DM_MSG_PREFIX "era"
#define SUPERBLOCK_LOCATION 0
#define SUPERBLOCK_MAGIC 2126579579
#define SUPERBLOCK_CSUM_XOR 146538381
#define MIN_ERA_VERSION 1
#define MAX_ERA_VERSION 1
#define INVALID_WRITESET_ROOT SUPERBLOCK_LOCATION
struct writeset_metadata {
struct writeset_metadata md;
static void writeset_free(struct writeset *ws)
static int setup_on_disk_bitset(struct dm_disk_bitset *info,
unsigned nr_bits, dm_block_t *root)
r = dm_bitset_empty(info, root);
return dm_bitset_resize(info, *root, 0, nr_bits, false, root);
static size_t bitset_size(unsigned nr_bits)