Re: A question on block_prepare_write()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Saturday, October 23, 2010 - 10:40 am

On Sat, 23 Oct 2010 22:44:42 +0900 Namhyung Kim <namhyung@gmail.com> wrote:


block_prepare_write() may need to preread any buffer_head which are
being only partially modified by the write().

Buffers which aren't being modified at all don't need to be preread. 
Buffers which are being fully modified don't need to be preread
(because all their data is being overwritten).

page:                      |-----------------------|
buffer_heads:              |-----|-----|-----|-----|
area we're writing to:               |---------|

There can only be a maximum of two partially-modified buffers in the page.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: A question on block_prepare_write(), Andrew Morton, (Sat Oct 23, 10:40 am)
Re: A question on block_prepare_write(), Namhyung Kim, (Sat Oct 23, 11:00 am)