Commit 39c5b729 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 0273dfef
......@@ -155,9 +155,8 @@ int fileh_open(BigFileH *fileh, BigFile *file, RAM *ram, FileHOpenFlags flags)
if (!(flags == 0 || flags == MMAP_OVERLAY || flags == DONT_MMAP_OVERLAY))
return -EINVAL;
if (flags == 0) {
if (flags == 0)
flags = fops->mmap_setup_read ? MMAP_OVERLAY : DONT_MMAP_OVERLAY;
}
if (flags & MMAP_OVERLAY && flags & DONT_MMAP_OVERLAY)
return -EINVAL;
if (flags == MMAP_OVERLAY) {
......@@ -1104,7 +1103,7 @@ static void vma_mmap_page(VMA *vma, Page *page) {
}
}
/* is `page->fpgoffset` belongs to file-range covered by `vma` */
/* is `page->fpgoffset` in file-range covered by `vma` */
static int vma_page_infilerange(VMA *vma, Page *page)
{
pgoff_t vma_fpgstop;
......@@ -1176,8 +1175,6 @@ bool __fileh_page_isdirty(BigFileH *fileh, pgoff_t pgoffset)
{
Page *page;
// XXX sigsegv_block ?
page = pagemap_get(&fileh->pagemap, pgoffset);
if (!page)
return false;
......
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