mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[PATCH] reiserfs: update ctime and mtime on expanding truncate
Reiserfs does not update ctime and mtime on expanding truncate via truncate(). This patch fixes it. Signed-off-by: Vladimir Saveliev <vs@namesys.com> Cc: Hans Reiser <reiser@namesys.com> Cc: Michael Kerrisk <mtk-manpages@gmx.net> Cc: Chris Mason <mason@suse.com> Cc: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
d882b17251
commit
dd535a5965
1 changed files with 5 additions and 0 deletions
|
@ -2932,6 +2932,11 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr)
|
|||
}
|
||||
if (error)
|
||||
goto out;
|
||||
/*
|
||||
* file size is changed, ctime and mtime are
|
||||
* to be updated
|
||||
*/
|
||||
attr->ia_valid |= (ATTR_MTIME | ATTR_CTIME);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue