summaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-03-25 19:24:09 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2016-03-28 06:47:22 +0200
commit7df818b2370a9aab5fc58a85b70b8af3d835affa (patch)
tree3db444090c642e228bc10b4945388ea452562ae5 /fs/open.c
parentconstify security_path_truncate() (diff)
downloadlinux-7df818b2370a9aab5fc58a85b70b8af3d835affa.tar.xz
linux-7df818b2370a9aab5fc58a85b70b8af3d835affa.zip
constify vfs_truncate()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/open.c b/fs/open.c
index 17cb6b1dab75..2f49fce5c952 100644
--- 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;