diff options
-rw-r--r-- | fs/open.c | 2 | ||||
-rw-r--r-- | include/linux/fs.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -65,7 +65,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs, | |||
65 | return ret; | 65 | return ret; |
66 | } | 66 | } |
67 | 67 | ||
68 | long vfs_truncate(struct path *path, loff_t length) | 68 | long vfs_truncate(const struct path *path, loff_t length) |
69 | { | 69 | { |
70 | struct inode *inode; | 70 | struct inode *inode; |
71 | long error; | 71 | long error; |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 14a97194b34b..09a68517e952 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2253,7 +2253,7 @@ struct filename { | |||
2253 | const char iname[]; | 2253 | const char iname[]; |
2254 | }; | 2254 | }; |
2255 | 2255 | ||
2256 | extern long vfs_truncate(struct path *, loff_t); | 2256 | extern long vfs_truncate(const struct path *, loff_t); |
2257 | extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs, | 2257 | extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs, |
2258 | struct file *filp); | 2258 | struct file *filp); |
2259 | extern int vfs_fallocate(struct file *file, int mode, loff_t offset, | 2259 | extern int vfs_fallocate(struct file *file, int mode, loff_t offset, |