Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7df818b2 authored by Al Viro's avatar Al Viro
Browse files

constify vfs_truncate()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 81f4c506
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -65,7 +65,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
	return ret;
	return ret;
}
}


long vfs_truncate(struct path *path, loff_t length)
long vfs_truncate(const struct path *path, loff_t length)
{
{
	struct inode *inode;
	struct inode *inode;
	long error;
	long error;
+1 −1
Original line number Original line Diff line number Diff line
@@ -2253,7 +2253,7 @@ struct filename {
	const char		iname[];
	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,
extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs,
		       struct file *filp);
		       struct file *filp);
extern int vfs_fallocate(struct file *file, int mode, loff_t offset,
extern int vfs_fallocate(struct file *file, int mode, loff_t offset,