why clear_buffer_uptodate in end_buffer_write_sync on write error?

From: Robert W. Fuller
Date: Sun Jan 02 2005 - 21:19:30 EST


I'm trying to understand the file systems. I'm making good progress, but I don't get this. If the buffer is marked not up to date because the write failed, won't this cause block_prepare_write to try and read the buffer using ll_rw_block thereby overwriting the data that couldn't be written? Is this desirable? Perhaps I'm confused?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/