On Fri, Jun 29, 2012 at 09:05:10AM -0400, Chris Mason wrote:
> > It is better that update i_size in endio, I think. because during endio, we 
> > are sure that
> > the data is flushed into the disk successfully, and can update i_size at 
> > ease. and if the
> > error happens when flushing the data into the disk, we also needn't reset 
> > i_size.
> 
> I think the i_size update should happen sooner.  The rest of the
> filesystems work that way, and it will have fewer interaction problems
> with the VM.

FYI: XFS only updates i_size in the end_io handler.

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to