| # buf = VFS_PAGE_SIZE, pcache[datakey(m, n)] = mkpentry(true, buf), files[m] = mkfile(m0, md, m1, content), err = ESUCCESS, n * VFS_PAGE_SIZE < m2, m ∈ files, datakey(m, n) ∈ pcache, err0 = ESUCCESS ∨ ⌊err0⌋ ⊦ [afs_check_commit#(dirs, files[m, mkfile(m0, md, m1, content[n, buf])]; err; asynced1); if err = ESUCCESS then {asynced := false; pcache_set_status#(m, n, asynced; err, pcache)}; n := n + 1] (err = ESUCCESS ∨ ⌊err⌋ ) |
# buf = VFS_PAGE_SIZE, files0[m] = mkfile(m0, md, m1, content), pcache[datakey(m, n)] = mkpentry(true, buf), err = ESUCCESS, files = files0[m, mkfile(m0, md, m1, content[n, buf])], n * VFS_PAGE_SIZE < m2, datakey(m, n) ∈ pcache, m ∈ files0, err0 = ESUCCESS ∨ ⌊err0⌋ ⊦ [fail_or_success#(; ; err); choose bv with true in asynced := bv; if err = ESUCCESS then {asynced := false; pcache_set_status#(m, n, asynced; err, pcache)}; n := n + 1] (err = ESUCCESS ∨ ⌊err⌋ )
Used simplifier rules: afs_check_commit#(DIRS, FILES; ERR; ASYNCED) {fail_or_success#(; ; ERR); choose bv with true in ASYNCED := bv};