From: Vladimir Saveliev Reiserfs does not update ctime and mtime on expanding truncate via truncate(). This patch fixes it. Signed-off-by: Vladimir Saveliev Cc: Hans Reiser Cc: Michael Kerrisk Cc: Chris Mason Cc: Jeff Mahoney Signed-off-by: Andrew Morton --- fs/reiserfs/inode.c | 5 +++++ 1 file changed, 5 insertions(+) diff -puN fs/reiserfs/inode.c~reiserfs-update-ctime-and-mtime-on-expanding-truncate fs/reiserfs/inode.c --- a/fs/reiserfs/inode.c~reiserfs-update-ctime-and-mtime-on-expanding-truncate +++ a/fs/reiserfs/inode.c @@ -2932,6 +2932,11 @@ int reiserfs_setattr(struct dentry *dent } if (error) goto out; + /* + * file size is changed, ctime and mtime are + * to be updated + */ + attr->ia_valid |= (ATTR_MTIME | ATTR_CTIME); } } _