From: Andreas Dilger Subject: Why do we update ctime in generic_file_write? Date: Tue, 21 Jan 2003 18:00:07 -0700 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20030121180007.B1594@schatzie.adilger.int> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: (from adilger@localhost) by schatzie.adilger.int (8.11.6/8.11.6) id h0M108M05720 for linux-fsdevel@vger.kernel.org; Tue, 21 Jan 2003 18:00:08 -0700 To: linux-fsdevel@vger.kernel.org Content-Disposition: inline List-Id: linux-fsdevel.vger.kernel.org I was looking at the code in generic file write (both 2.4 and 2.5) and in both cases we update the ctime always. My understanding here is that the mtime reflects the data modification time, while the ctime reflects the inode change time, so we should only be updating the ctime (at most) if the file size was increased, and not if we are overwriting data. Anyone have any good rationale for the current behaviour? Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/