[PATCH] xfs: ensure correct timestamp updates from truncate

Jeff Liu jeff.liu at oracle.com
Thu Jan 30 02:33:05 CST 2014


On 01/30 2014 16:06 PM, 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>

Reviewed-by: Jie Liu <jeff.liu at oracle.com>

Thanks,
-Jeff



More information about the xfs mailing list