From: Maxim Patlasov Date: Mon, 28 Apr 2014 12:19:22 +0000 (+0200) Subject: fuse: update mtime on truncate(2) X-Git-Tag: omap-for-v3.16/fixes-against-rc1~210^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=009dd694e82098a703b8b5c8dd9f54c131dbb9b3;p=pandora-kernel.git fuse: update mtime on truncate(2) Handling truncate(2), VFS doesn't set ATTR_MTIME bit in iattr structure; only ATTR_SIZE bit is set. In-kernel fuse must handle the case by setting mtime fields of struct fuse_setattr_in to "now" and set FATTR_MTIME bit even though ATTR_MTIME was not set. Signed-off-by: Maxim Patlasov Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed