Commit 69515a9f authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 71b0888e
......@@ -1491,8 +1491,8 @@ void test_file_access_mmapbase(void)
err = fileh_mmap(vma, fh, 100, 4);
ok1(!err);
B(vma, 0*PSb) = gen + 0;
B(vma, 2*PSb) = gen + 2;
B(vma, 0*PSb) = gen + 0;
vma_unmap(vma);
page0 = pagemap_get(&fh->pagemap, 100); ok1(page0);
page2 = pagemap_get(&fh->pagemap, 102); ok1(page2);
......@@ -1505,8 +1505,8 @@ void test_file_access_mmapbase(void)
CHECK_PAGE (page2, 102, PAGE_DIRTY, 0);
CHECK_NOPAGE( 103 );
CHECK_MRU (page2, page0);
CHECK_DIRTY (page2, page0);
CHECK_MRU (page0, page2);
CHECK_DIRTY (page0, page2);
}
diag("writeout (store)");
......@@ -1518,8 +1518,8 @@ void test_file_access_mmapbase(void)
CHECK_PAGE (page2, 102, PAGE_DIRTY, 0);
CHECK_NOPAGE( 103 );
CHECK_MRU (page2, page0);
CHECK_DIRTY (page2, page0);
CHECK_MRU (page0, page2);
CHECK_DIRTY (page2, page0); /* note becomes sorted by f_pgoffset */
ok1(B(vma, 0*PSb + 0) == 10);
ok1(B(vma, 0*PSb + 1) == 100);
......@@ -1538,6 +1538,9 @@ void test_file_access_mmapbase(void)
xmunmap(b0, PS);
xmunmap(b2, PS);
diag("writeout (mark)");
// XXX
// XXX invalidation ?
......
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