ensure file size is logged on synchronous writes
Synchronous writes currently log inode changes before syncing
pages to disk. Since the file size is updated on I/O completion
we wont be writing out the updated file size and if we crash the
file will have the wrong size. This change moves the logging
after the syncing of the pages to ensure we log the correct file
size.
Date: Tue Sep 11 14:31:23 AEST 2007
Workarea: redback.melbourne.sgi.com:/home/lachlan/isms/2.6.x-xfs
Inspected by: Christoph Hellwig <hch@xxxxxxxxxxxxx>
The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
Modid: xfs-linux-melb:xfs-kern:29649a
fs/xfs/linux-2.6/xfs_lrw.c - 1.267 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_lrw.c.diff?r1=text&tr1=1.267&r2=text&tr2=1.266&f=h
- ensure file size is logged on synchronous writes
|