Commit 8cd3cb50 authored by Ernesto A. Fernández's avatar Ernesto A. Fernández Committed by Linus Torvalds

hfs: update timestamp on truncate()

The vfs takes care of updating mtime on ftruncate(), but on truncate() it
must be done by the module.

Link: default avatarErnesto A. Fernández <>
Reviewed-by: default avatarVyacheslav Dubeyko <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent dc8844aa
......@@ -642,6 +642,8 @@ int hfs_inode_setattr(struct dentry *dentry, struct iattr * attr)
truncate_setsize(inode, attr->ia_size);
inode->i_atime = inode->i_mtime = inode->i_ctime =
setattr_copy(inode, attr);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment