xfs
[Top] [All Lists]

Re: [PATCH] ensure file size is logged on synchronous writes

To: Lachlan McIlroy <lachlan@xxxxxxx>
Subject: Re: [PATCH] ensure file size is logged on synchronous writes
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Mon, 10 Sep 2007 16:07:45 +0100
Cc: xfs-dev <xfs-dev@xxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx>
In-reply-to: <46DB7A60.4050203@xxxxxxx>
References: <46DB7A60.4050203@xxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.3i
On Mon, Sep 03, 2007 at 01:07:12PM +1000, Lachlan McIlroy wrote:
> 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.

Looks good to me.


<Prev in Thread] Current Thread [Next in Thread>