Always use our special allocator function to allocate the MMP buffer.
This will be useful in case we ever pass that buffer to ext2fs_mmp_write
on a filesystem that is opened with O_DIRECT.
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
clear_problem_context(&pctx);
if (fs->mmp_buf == NULL) {
- retval = ext2fs_get_mem(fs->blocksize, &fs->mmp_buf);
+ retval = ext2fs_mmp_get_mem(fs, &fs->mmp_buf);
if (retval)
goto check_error;
}
goto errout;
}
if (src->mmp_buf) {
- retval = ext2fs_get_mem(src->blocksize, &fs->mmp_buf);
+ retval = ext2fs_mmp_get_mem(src, &fs->mmp_buf);
if (retval)
goto errout;
memcpy(fs->mmp_buf, src->mmp_buf, src->blocksize);
errcode_t retval = 0;
if (fs->mmp_buf == NULL) {
- retval = ext2fs_get_mem(fs->blocksize, &fs->mmp_buf);
+ retval = ext2fs_mmp_get_mem(fs, &fs->mmp_buf);
if (retval)
goto out;
}
return EXT2_ET_INVALID_ARGUMENT;
if (fs->mmp_buf == NULL) {
- retval = ext2fs_get_mem(fs->blocksize, &fs->mmp_buf);
+ retval = ext2fs_mmp_get_mem(fs, &fs->mmp_buf);
if (retval)
goto out;
}
errcode_t retval = 0;
if (fs->mmp_buf == NULL) {
- retval = ext2fs_get_mem(fs->blocksize, &fs->mmp_buf);
+ retval = ext2fs_mmp_get_mem(fs, &fs->mmp_buf);
if (retval)
goto mmp_error;
}
errcode_t retval;
if (fs->mmp_buf == NULL) {
- retval = ext2fs_get_mem(fs->blocksize, &fs->mmp_buf);
+ retval = ext2fs_mmp_get_mem(fs, &fs->mmp_buf);
if (retval) {
com_err(program_name, retval,
_("failed to alloc MMP buffer\n"));