| # buf = VFS_PAGE_SIZE, asynced ↔ asynced0, ¬ asynced0, ino = m, key = datakey(ino, pageno), pe = pcache[key], afs-cons(dirs, files), dcache-cons(dcache, dirs, files), icache-cons(icache, dirs, files), pcache-cons(pcache, dirs, files), synced(dirs, icache, pcache), m ∈ files, key ∈ pcache, asynced2 → synced(files, icache, pcache) ⊦ ⟪buf := pe.page; asynced := true; err := ESUCCESS; if ¬ asynced ∨ err ≠ ESUCCESS then {afs_readpage#(mkinode(m, md, boolvar, m0, m1, m2), pageno, dirs, files, asynced1; buf, err); if err = ESUCCESS ∧ buf ≠ zeropage then let asynced = false in pcache_set#(m, pageno, buf, asynced; err, pcache)}⟫ (pcache-cons(pcache, dirs, files) ∧ synced(dirs, icache, pcache) ∧ (asynced2 → synced(files, icache, pcache))) |
# buf0 = VFS_PAGE_SIZE, asynced ↔ asynced0, ¬ asynced0, buf = pe.page, ino = m, key = datakey(ino, pageno), pe = pcache[key], afs-cons(dirs, files), dcache-cons(dcache, dirs, files), icache-cons(icache, dirs, files), pcache-cons(pcache, dirs, files), synced(dirs, icache, pcache), key ∈ pcache, m ∈ files, asynced2 → synced(files, icache, pcache) ⊦ ⟪asynced := true; err := ESUCCESS; if ¬ asynced ∨ err ≠ ESUCCESS then {afs_readpage#(mkinode(m, md, boolvar, m0, m1, m2), pageno, dirs, files, asynced1; buf, err); if err = ESUCCESS ∧ buf ≠ zeropage then let asynced = false in pcache_set#(m, pageno, buf, asynced; err, pcache)}⟫ (pcache-cons(pcache, dirs, files) ∧ synced(dirs, icache, pcache) ∧ (asynced2 → synced(files, icache, pcache)))