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

Function cluster_wbuild_wb

freebsd/kern/vfs_cluster.c:621–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619 */
620
621static __inline int
622cluster_wbuild_wb(struct vnode *vp, long size, daddr_t start_lbn, int len,
623 int gbflags)
624{
625 int r = 0;
626
627 switch (write_behind) {
628 case 2:
629 if (start_lbn < len)
630 break;
631 start_lbn -= len;
632 /* FALLTHROUGH */
633 case 1:
634 r = cluster_wbuild(vp, size, start_lbn, len, gbflags);
635 /* FALLTHROUGH */
636 default:
637 /* FALLTHROUGH */
638 break;
639 }
640 return(r);
641}
642
643/*
644 * Do clustered write for FFS.

Callers 1

cluster_writeFunction · 0.85

Calls 1

cluster_wbuildFunction · 0.85

Tested by

no test coverage detected