[PATCH] xfs: ensure correct timestamp updates from truncate

Ben Myers bpm at sgi.com
Thu Jan 30 09:47:01 CST 2014


On Thu, Jan 30, 2014 at 12:06:52AM -0800, Christoph Hellwig wrote:
> The VFS doesn't set the proper ATTR_CTIME and ATTR_MTIME values for truncate,
> so filesystems have to manually add them.  The introduction of
> xfs_setattr_time accidentally broke this special case an caused a
> regression in generic/313.  Fix this by removing the local mask variable
> in xfs_setattr_size so that we only have a single place to keep the
> attribute information.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> Reported-by: Fengguang Wu <fengguang.wu at intel.com>

That is v3.13-rc2-14-gc91c46c, so I believe we'll want to Cc: stable on this
one.  Correct?



More information about the xfs mailing list