#include <linux/fs.h>
#include <linux/random.h>
#include <linux/buffer_head.h>
#include <linux/utsname.h>
#include <linux/kthread.h>
#include "ext4.h"
static __le32 ext4_mmp_csum(struct super_block *sb, struct mmp_struct *mmp)
{ … }
static int ext4_mmp_csum_verify(struct super_block *sb, struct mmp_struct *mmp)
{ … }
static void ext4_mmp_csum_set(struct super_block *sb, struct mmp_struct *mmp)
{ … }
static int write_mmp_block_thawed(struct super_block *sb,
struct buffer_head *bh)
{ … }
static int write_mmp_block(struct super_block *sb, struct buffer_head *bh)
{ … }
static int read_mmp_block(struct super_block *sb, struct buffer_head **bh,
ext4_fsblk_t mmp_block)
{ … }
void __dump_mmp_msg(struct super_block *sb, struct mmp_struct *mmp,
const char *function, unsigned int line, const char *msg)
{ … }
static int kmmpd(void *data)
{ … }
void ext4_stop_mmpd(struct ext4_sb_info *sbi)
{ … }
static unsigned int mmp_new_seq(void)
{ … }
int ext4_multi_mount_protect(struct super_block *sb,
ext4_fsblk_t mmp_block)
{ … }