Re: [PATCH] 2.6.10 - direct-io async short read bug

From: Joel Becker
Date: Wed Mar 09 2005 - 16:24:34 EST

On Wed, Mar 09, 2005 at 11:53:48AM -0800, Andrew Morton wrote:
> Suparna Bhattacharya <suparna@xxxxxxxxxx> wrote:
> > If writes/truncates take care of zeroing out the rest of the sector
> > on disk, might we still be OK without having to do the bounce buffer
> > thing ?
> We can probably rely on the rest of the sector outside i_size being zeroed
> anyway. Because if it contains non-zero gunk then the fs already has a
> problem, and the user can get at that gunk with an expanding truncate and
> mmap() anyway.

Actually, yeah, even today we rely on block_prepare_write and
friends to handle that trail zeroing. That all happens after the sector
has been read from disk. So this should be analogous.



Life's Little Instruction Book #396

"Never give anyone a fruitcake."
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at