diff options
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 6dbbd42d8b95..300eae088d5f 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1491,7 +1491,7 @@ int may_open(struct nameidata *nd, int acc_mode, int flag) | |||
1491 | if (!error) { | 1491 | if (!error) { |
1492 | DQUOT_INIT(inode); | 1492 | DQUOT_INIT(inode); |
1493 | 1493 | ||
1494 | error = do_truncate(dentry, 0, NULL); | 1494 | error = do_truncate(dentry, 0, ATTR_MTIME|ATTR_CTIME, NULL); |
1495 | } | 1495 | } |
1496 | put_write_access(inode); | 1496 | put_write_access(inode); |
1497 | if (error) | 1497 | if (error) |