Lines Matching refs:mmp_cmp
35 struct mmp_struct *mmp_cmp; in ext2fs_mmp_read() local
55 if (fs->mmp_cmp == NULL) { in ext2fs_mmp_read()
59 &fs->mmp_cmp); in ext2fs_mmp_read()
71 if (read(fs->mmp_fd, fs->mmp_cmp, fs->blocksize) != fs->blocksize) { in ext2fs_mmp_read()
76 mmp_cmp = fs->mmp_cmp; in ext2fs_mmp_read()
78 ext2fs_swap_mmp(mmp_cmp); in ext2fs_mmp_read()
81 if (buf != NULL && buf != fs->mmp_cmp) in ext2fs_mmp_read()
82 memcpy(buf, fs->mmp_cmp, fs->blocksize); in ext2fs_mmp_read()
84 if (mmp_cmp->mmp_magic != EXT4_MMP_MAGIC) { in ext2fs_mmp_read()
331 struct mmp_struct *mmp, *mmp_cmp; in ext2fs_mmp_stop() local
344 mmp_cmp = fs->mmp_cmp; in ext2fs_mmp_stop()
345 if (memcmp(mmp, mmp_cmp, sizeof(*mmp_cmp))) { in ext2fs_mmp_stop()
350 mmp_cmp->mmp_seq = EXT4_MMP_SEQ_CLEAN; in ext2fs_mmp_stop()
351 retval = ext2fs_mmp_write(fs, fs->super->s_mmp_block, fs->mmp_cmp); in ext2fs_mmp_stop()
369 struct mmp_struct *mmp, *mmp_cmp; in ext2fs_mmp_update() local
386 mmp_cmp = fs->mmp_cmp; in ext2fs_mmp_update()
388 if (memcmp(mmp, mmp_cmp, sizeof(*mmp_cmp))) in ext2fs_mmp_update()