]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
constify vfs_truncate()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Mar 2016 18:24:09 +0000 (14:24 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 28 Mar 2016 04:47:22 +0000 (00:47 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/open.c
include/linux/fs.h

index 17cb6b1dab753b9de6366f92b6ca3ba3cb204291..2f49fce5c952601f899edecfa548ce91a213605f 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -65,7 +65,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
        return ret;
 }
 
-long vfs_truncate(struct path *path, loff_t length)
+long vfs_truncate(const struct path *path, loff_t length)
 {
        struct inode *inode;
        long error;
index 14a97194b34ba16ba7906ae8c27b1767f266f317..09a68517e952a5d64eba7007060f7a03a3e5f786 100644 (file)
@@ -2253,7 +2253,7 @@ struct filename {
        const char              iname[];
 };
 
-extern long vfs_truncate(struct path *, loff_t);
+extern long vfs_truncate(const struct path *, loff_t);
 extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs,
                       struct file *filp);
 extern int vfs_fallocate(struct file *file, int mode, loff_t offset,