Write at EOF may not update filesize correctly.
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
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.
Date: Wed May 23 10:58:50 AEST 2007
Inspected by: nscott@xxxxxxxxxx
The following file(s) were checked into:
fs/xfs/linux-2.6/xfs_aops.c - 1.143 - changed
- Ensure we use an I/O completion handler that can update the filesize
for all types of write regardless of whether we need to do allocation