diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/namei.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c index 464eeccb675b..1e5c71669164 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1659,8 +1659,10 @@ int may_open(struct nameidata *nd, int acc_mode, int flag) | |||
1659 | error = locks_verify_locked(inode); | 1659 | error = locks_verify_locked(inode); |
1660 | if (!error) { | 1660 | if (!error) { |
1661 | DQUOT_INIT(inode); | 1661 | DQUOT_INIT(inode); |
1662 | 1662 | ||
1663 | error = do_truncate(dentry, 0, ATTR_MTIME|ATTR_CTIME, NULL); | 1663 | error = do_truncate(dentry, 0, |
1664 | ATTR_MTIME|ATTR_CTIME|ATTR_OPEN, | ||
1665 | NULL); | ||
1664 | } | 1666 | } |
1665 | put_write_access(inode); | 1667 | put_write_access(inode); |
1666 | if (error) | 1668 | if (error) |