[XFS] Write at EOF may not update filesize correctly.
authorDavid Chinner <dgc@sgi.com>
Thu, 24 May 2007 05:27:03 +0000 (15:27 +1000)
committerTim Shimmin <tes@chook.melbourne.sgi.com>
Tue, 29 May 2007 08:15:17 +0000 (18:15 +1000)
The recent fix for preventing NULL files from being left around does not
update the file size corectly in all cases. The missing case is a write
extending the file that does not need to allocate a block.

In that case we used a read mapping of the extent which forced the use of
the read I/O completion handler instead of the write I/O completion
handle. Hence the file size was not updated on I/O completion.

SGI-PV: 965068
SGI-Modid: xfs-linux-melb:xfs-kern:28657a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Nathan Scott <nscott@aconex.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>

No differences found