| VFS_PAGE_SIZE = n3 + (n0 + n2) % VFS_PAGE_SIZE, buf = mkbuf(VFS_PAGE_SIZE), buf0 = buf1, files = files1, ino = (n0 + n2) % VFS_PAGE_SIZE, ino0 = n2, n = min(n1 - n0 + n2, n3), pageno = (n0 + n2) / VFS_PAGE_SIZE, write-inv(n0, n1, inode, buf1, n2, dirs, files0, files1), n0 + n2 ≤ n1, n1 ≥ n0 + n2 ⊦ [afs_readpage#(inode, pageno, dirs, files, asynced; buf, err); if err = ESUCCESS then afs_check_commit#(dirs, files; err; asynced); if err = ESUCCESS then {buf := copy(buf0, ino0, buf, ino, n); afs_writepage#(inode, pageno, buf, dirs; err, files; asynced)}; n := min(n1 - n0 + n2, n3); if err = ESUCCESS then n2 := n2 + n] write-inv(n0, n1, inode, buf1, n2, dirs, files0, files), VFS_PAGE_SIZE = 0, min(n1 - n0 + n2, n3) = 0 |
VFS_PAGE_SIZE = n3 + (n0 + n2) % VFS_PAGE_SIZE, buf = mkbuf(VFS_PAGE_SIZE), min(n1 - n0 + n2, n3) ≠ 0, write-inv(n0, n1, inode, buf1, n2, dirs, files0, files1), n0 + n2 ≤ n1 ⊦ [afs_readpage#(inode, (n0 + n2) / VFS_PAGE_SIZE, dirs, files1, asynced; buf, err); if err = ESUCCESS then afs_check_commit#(dirs, files1; err; asynced); if err = ESUCCESS then {buf := copy(buf1, n2, buf, (n0 + n2) % VFS_PAGE_SIZE, min(n1 - n0 + n2, n3)); afs_writepage#(inode, (n0 + n2) / VFS_PAGE_SIZE, buf, dirs; err, files1; asynced)}; n := min(n1 - n0 + n2, n3); if err = ESUCCESS then n2 := n2 + n] write-inv(n0, n1, inode, buf1, n2, dirs, files0, files1)
Used simplifier rules: ⊦ n ≥ m ↔ m ≤ n; (s)% ⊦ VFS_PAGE_SIZE ≠ 0; (s)