Commit dd535a59 authored by Vladimir Saveliev's avatar Vladimir Saveliev Committed by Linus Torvalds

[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: default avatarVladimir Saveliev <>
Cc: Hans Reiser <>
Cc: Michael Kerrisk <>
Cc: Chris Mason <>
Cc: Jeff Mahoney <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent d882b172
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment