VFS: Make more complete truncate operation available to CacheFiles
authorDavid Howells <dhowells@redhat.com>
Thu, 20 Dec 2012 21:52:36 +0000 (21:52 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 20 Dec 2012 22:05:41 +0000 (22:05 +0000)
commita02de9608595c8ef649ef03ae735b0b45e3d4396
treeca411825ecc8a30b70d869244a7e9412d0728486
parentef778e7ae67cd426c30cad43378b908f5eb0bad5
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>
fs/open.c
include/linux/fs.h