From: Christoph Hellwig Date: Sun, 9 Feb 2014 23:35:22 +0000 (+1100) Subject: xfs: ensure correct timestamp updates from truncate X-Git-Tag: v3.14-rc4~13^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe60a8a0919eeee862054137fed49f00b710d9cd;p=pandora-kernel.git xfs: ensure correct timestamp updates from truncate 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. cc: Signed-off-by: Christoph Hellwig Reported-by: Fengguang Wu Reviewed-by: Brian Foster Reviewed-by: Jie Liu Signed-off-by: Dave Chinner --- Reading git-diff-tree failed