Change flush routine to the following. This will reduce the window for when a scan is required to within 5 minutes of a cluster allocation assuming no flushes have occurred.
- clear scheduled flush (if necessary)
- opportunistic flush (for whatever reason)
- mark clean
- no intervening metadata changes
- mark dirty
- schedule flush (in 5 minutes)
- metadata changes