diff options
author | David Howells <dhowells@redhat.com> | 2012-12-20 16:52:36 -0500 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-12-20 17:05:41 -0500 |
commit | a02de9608595c8ef649ef03ae735b0b45e3d4396 (patch) | |
tree | ca411825ecc8a30b70d869244a7e9412d0728486 /include/linux/fs.h | |
parent | ef778e7ae67cd426c30cad43378b908f5eb0bad5 (diff) |
VFS: Make more complete truncate operation available to CacheFiles
Make a more complete truncate operation available to CacheFiles (including
security checks and suchlike) so that it can use this to clear invalidated
cache files.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index a823d4be38e7..017a15b707e2 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1999,6 +1999,7 @@ struct filename { | |||
1999 | bool separate; /* should "name" be freed? */ | 1999 | bool separate; /* should "name" be freed? */ |
2000 | }; | 2000 | }; |
2001 | 2001 | ||
2002 | extern long vfs_truncate(struct path *, loff_t); | ||
2002 | extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs, | 2003 | extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs, |
2003 | struct file *filp); | 2004 | struct file *filp); |
2004 | extern int do_fallocate(struct file *file, int mode, loff_t offset, | 2005 | extern int do_fallocate(struct file *file, int mode, loff_t offset, |