17.13 bflush (5229)

This procedure is called by “update” (7201), which is called by “panic” (2420), “sync” (3489) and “sumount” (6150).

“bflush” searches the “av”-list for “delayed write” blocks and forces them to be written out asynchronously.

Note that as “notavail” adjusts the links of the “av”-list, the search (which runs at processor priority six) is reinitiated after each “delayed write” block is encountered.

Note also that since it happens that “bflush” is only called by “update” with “dev” equal to “NODEV”, line 5238, in particular, could be simplified.