Don't check filesystem if it's marked clean.

(cherry picked from commit 390bb4813617783a63e06b02eb7006f7f82e1225)