Skip to content
Snippets Groups Projects
Commit 8cd3cb50 authored by Ernesto A. Fernández's avatar Ernesto A. Fernández Committed by Linus Torvalds
Browse files

hfs: update timestamp on truncate()

parent dc8844aa
Branches
Tags
No related merge requests found
...@@ -642,6 +642,8 @@ int hfs_inode_setattr(struct dentry *dentry, struct iattr * attr) ...@@ -642,6 +642,8 @@ int hfs_inode_setattr(struct dentry *dentry, struct iattr * attr)
truncate_setsize(inode, attr->ia_size); truncate_setsize(inode, attr->ia_size);
hfs_file_truncate(inode); hfs_file_truncate(inode);
inode->i_atime = inode->i_mtime = inode->i_ctime =
current_time(inode);
} }
setattr_copy(inode, attr); setattr_copy(inode, attr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment