MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bbarrierwrite

Function bbarrierwrite

freebsd/kern/vfs_bio.c:2560–2566  ·  view source on GitHub ↗

* bbarrierwrite: * * Synchronous barrier write. Start output on a buffer and wait for * it to complete. Place a write barrier after this write so that * this buffer and all buffers written before it are committed to * the disk before any buffers written after this write are committed * to the disk. The buffer is released when the output completes. */

Source from the content-addressed store, hash-verified

2558 * to the disk. The buffer is released when the output completes.
2559 */
2560int
2561bbarrierwrite(struct buf *bp)
2562{
2563
2564 bp->b_flags |= B_BARRIER;
2565 return (bwrite(bp));
2566}
2567
2568/*
2569 * bwillwrite:

Callers

nothing calls this directly

Calls 1

bwriteFunction · 0.85

Tested by

no test coverage detected