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

Function bd_flushall

freebsd/kern/vfs_bio.c:1926–1947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1924}
1925
1926static int
1927bd_flushall(struct bufdomain *bd)
1928{
1929 struct bufqueue *bq;
1930 int flushed;
1931 int i;
1932
1933 if (bd->bd_lim == 0)
1934 return (0);
1935 flushed = 0;
1936 for (i = 0; i <= mp_maxid; i++) {
1937 bq = &bd->bd_subq[i];
1938 if (bq->bq_len == 0)
1939 continue;
1940 BQ_LOCK(bq);
1941 bd_flush(bd, bq);
1942 BQ_UNLOCK(bq);
1943 flushed++;
1944 }
1945
1946 return (flushed);
1947}
1948
1949static void
1950bq_insert(struct bufqueue *bq, struct buf *bp, bool unlock)

Callers 1

bufspace_daemonFunction · 0.85

Calls 1

bd_flushFunction · 0.85

Tested by

no test coverage detected