[PATCH] md: don't pass a NULL file* into ->prepare_write()