This code is where the real test was previously.  As far as I can see, there is no longer anything to prevent a page being queued for LRU eviction while clean, being dirtied by an application thread, then being evicted while a checkpoint is in progress.