* why clear_buffer_uptodate in end_buffer_write_sync on write error?
@ 2005-01-03 2:18 Robert W. Fuller
2005-01-03 2:25 ` Robert W. Fuller
0 siblings, 1 reply; 2+ messages in thread
From: Robert W. Fuller @ 2005-01-03 2:18 UTC (permalink / raw)
To: linux-kernel
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: why clear_buffer_uptodate in end_buffer_write_sync on write error?
2005-01-03 2:18 why clear_buffer_uptodate in end_buffer_write_sync on write error? Robert W. Fuller
@ 2005-01-03 2:25 ` Robert W. Fuller
0 siblings, 0 replies; 2+ messages in thread
From: Robert W. Fuller @ 2005-01-03 2:25 UTC (permalink / raw)
To: linux-kernel
Hmm, ok this makes sense for the sync case, but what about the async
case? Should clear_buffer_uptodate be called in end_buffer_async_write?
How is the error going to be reported to the user, particularly in the
case of a memory mapped file? Shouldn't the system try to write that
page again?
Robert W. Fuller wrote:
> 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@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-03 2:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-03 2:18 why clear_buffer_uptodate in end_buffer_write_sync on write error? Robert W. Fuller
2005-01-03 2:25 ` Robert W. Fuller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox