The patch titled Subject: hfsplus: update timestamps on truncate() has been added to the -mm tree. Its filename is hfsplus-update-timestamps-on-truncate.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/hfsplus-update-timestamps-on-truncate.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/hfsplus-update-timestamps-on-truncate.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Ernesto A. Fernández <ernesto.mnd.fernandez@xxxxxxxxx> Subject: hfsplus: update timestamps on truncate() The vfs takes care of updating ctime and mtime on ftruncate(), but on truncate() it must be done by the module. This patch can be tested with xfstests generic/313. Link: http://lkml.kernel.org/r/9beb0913eea37288599e8e1b7cec8768fb52d1b8.1539316825.git.ernesto.mnd.fernandez@xxxxxxxxx Signed-off-by: Ernesto A. Fernández <ernesto.mnd.fernandez@xxxxxxxxx> Reviewed-by: Vyacheslav Dubeyko <slava@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- --- a/fs/hfsplus/inode.c~hfsplus-update-timestamps-on-truncate +++ a/fs/hfsplus/inode.c @@ -261,6 +261,7 @@ static int hfsplus_setattr(struct dentry } truncate_setsize(inode, attr->ia_size); hfsplus_file_truncate(inode); + inode->i_mtime = inode->i_ctime = current_time(inode); } setattr_copy(inode, attr); _ Patches currently in -mm which might be from ernesto.mnd.fernandez@xxxxxxxxx are hfsplus-prevent-btree-data-loss-on-root-split.patch hfsplus-fix-bug-on-bnode-parent-update.patch hfs-prevent-btree-data-loss-on-root-split.patch hfs-fix-bug-on-bnode-parent-update.patch hfsplus-prevent-btree-data-loss-on-enospc.patch hfs-prevent-btree-data-loss-on-enospc.patch hfsplus-fix-return-value-of-hfsplus_get_block.patch hfs-fix-return-value-of-hfs_get_block.patch hfsplus-update-timestamps-on-truncate.patch hfs-update-timestamp-on-truncate.patch