diff options
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/rcupdate.h> | 29 | #include <linux/rcupdate.h> |
30 | #include <linux/audit.h> | 30 | #include <linux/audit.h> |
31 | #include <linux/falloc.h> | 31 | #include <linux/falloc.h> |
32 | #include <linux/fs_struct.h> | ||
32 | 33 | ||
33 | int vfs_statfs(struct dentry *dentry, struct kstatfs *buf) | 34 | int vfs_statfs(struct dentry *dentry, struct kstatfs *buf) |
34 | { | 35 | { |
@@ -273,7 +274,7 @@ static long do_sys_truncate(const char __user *pathname, loff_t length) | |||
273 | if (!error) | 274 | if (!error) |
274 | error = security_path_truncate(&path, length, 0); | 275 | error = security_path_truncate(&path, length, 0); |
275 | if (!error) { | 276 | if (!error) { |
276 | DQUOT_INIT(inode); | 277 | vfs_dq_init(inode); |
277 | error = do_truncate(path.dentry, length, 0, NULL); | 278 | error = do_truncate(path.dentry, length, 0, NULL); |
278 | } | 279 | } |
279 | 280 | ||