| # buf = VFS_PAGE_SIZE, asynced ↔ asynced1, err = ESUCCESS, inode = mkinode(m, md, boolvar, m0, m1, m2), 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, pageno ∈ files[inode.ino].content, asynced2 → synced(files, icache, pcache) ⊦ ⟪err := ESUCCESS; if err = ESUCCESS ∧ files[inode.ino].content[pageno] ≠ zeropage then let asynced = false in pcache_set#(m, pageno, files[inode.ino].content[pageno], asynced; err, pcache)⟫ (pcache-cons(pcache, dirs, files) ∧ synced(dirs, icache, pcache) ∧ (asynced2 → synced(files, icache, pcache))), datakey(m, pageno) ∈ pcache |
# buf = VFS_PAGE_SIZE, asynced ↔ asynced1, err = ESUCCESS, inode = mkinode(m, md, boolvar, m0, m1, m2), afs-cons(dirs, files), dcache-cons(dcache, dirs, files), icache-cons(icache, dirs, files), pcache-cons(pcache, dirs, files), synced(dirs, icache, pcache), pageno ∈ files[inode.ino].content, m ∈ files, asynced2 → synced(files, icache, pcache) ⊦ ⟪if ESUCCESS = ESUCCESS ∧ files[inode.ino].content[pageno] ≠ zeropage then let asynced = false in {err := ESUCCESS; pcache_set#(m, pageno, files[inode.ino].content[pageno], asynced; err, pcache)}⟫ (pcache-cons(pcache, dirs, files) ∧ synced(dirs, icache, pcache) ∧ (asynced2 → synced(files, icache, pcache))), datakey(m, pageno) ∈ pcache