xfs
[Top] [All Lists]

TAKE 970334 - ensure file size is logged on synchronous writes

To: sgi.bugs.xfs@xxxxxxxxxxxx, xfs@xxxxxxxxxxx
Subject: TAKE 970334 - ensure file size is logged on synchronous writes
From: Lachlan McIlroy <lachlan@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 11 Sep 2007 14:35:38 +1000
Sender: xfs-bounce@xxxxxxxxxxx
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



<Prev in Thread] Current Thread [Next in Thread>
  • TAKE 970334 - ensure file size is logged on synchronous writes, Lachlan McIlroy <=