From: David Chinner Date: Thu, 6 Mar 2008 02:45:29 +0000 (+1100) Subject: [XFS] Update c/mtime correctly on truncates X-Git-Tag: v2.6.26-rc1~1147^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44d814ced4cffbfe6a775c5bb8b941a6e734e7d9;p=pandora-kernel.git [XFS] Update c/mtime correctly on truncates XFS changes the c/mtime of an inode when truncating it to the same size. The c/mtime is only supposed to change if the size is changed. Not to be confused with ftruncate, where the c/mtime is supposed to be changed even if the size is not changed. The Linux VFS encodes this semantic difference in the flags it sends down to ->setattr, which XFS currently ignores. We need to make XFS pay attention to the VFS flags and hence Do The Right Thing. SGI-PV: 977547 SGI-Modid: xfs-linux-melb:xfs-kern:30536a Signed-off-by: David Chinner Signed-off-by: Christoph Hellwig Signed-off-by: Lachlan McIlroy --- Reading git-diff-tree failed