diff options
| author | David Chinner <[email protected]> | 2007-02-12 00:51:41 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-02-12 09:48:27 -0800 |
| commit | 33a266dda9fbbe72dd978a451a8ee33c59da5e9c (patch) | |
| tree | 7e3fa4100e436f12b4c0ed562dd1f6dc9ec84fd4 /scripts | |
| parent | 42da9cbd3eedde33a42acc2cb06f454814cf5de0 (diff) | |
[PATCH] Make BH_Unwritten a first class bufferhead flag V2
Currently, XFS uses BH_PrivateStart for flagging unwritten extent state in a
bufferhead. Recently, I found the long standing mmap/unwritten extent
conversion bug, and it was to do with partial page invalidation not clearing
the unwritten flag from bufferheads attached to the page but beyond EOF. See
here for a full explaination:
http://oss.sgi.com/archives/xfs/2006-12/msg00196.html
The solution I have checked into the XFS dev tree involves duplicating code
from block_invalidatepage to clear the unwritten flag from the bufferhead(s),
and then calling block_invalidatepage() to do the rest.
Christoph suggested that this would be better solved by pushing the unwritten
flag into the common buffer head flags and just adding the call to
discard_buffer():
http://oss.sgi.com/archives/xfs/2006-12/msg00239.html
The following patch makes BH_Unwritten a first class citizen.
Signed-off-by: Dave Chinner <[email protected]>
Acked-by: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions