Commit 2a4703b2 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 31c39546
......@@ -916,13 +916,17 @@ pybigfile_mmap_setup_read(VMA *vma, BigFile *file0, blk_t blk, size_t blklen)
static int
pybigfile_remmap_blk_read(VMA *vma, BigFile *file0, blk_t blk)
{
BUG(); // XXX
PyBigFile *file = container_of(file0, PyBigFile, file);
ASSERT(file->blkmmap_ops != NULL);
return file->blkmmap_ops->remmap_blk_read(vma, file0, blk);
}
static void
pybigfile_munmap(VMA *vma, BigFile *file0)
{
BUG(); // XXX
PyBigFile *file = container_of(file0, PyBigFile, file);
ASSERT(file->blkmmap_ops != NULL);
return file->blkmmap_ops->munmap(vma, file0);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment