linux/fs/cachefiles
David Howells e2cf1f1cc7 CacheFiles: Handle rename2
Not all filesystems now provide the rename i_op - ext4 for one - but rather
provide the rename2 i_op.  CacheFiles checks that the filesystem has rename
and so will reject ext4 now with EPERM:

	CacheFiles: Failed to register: -1

Fix this by checking for rename2 as an alternative.  The call to vfs_rename()
actually handles selection of the appropriate function, so we needn't worry
about that.

Turning on debugging shows:

	[cachef] ==> cachefiles_get_directory(,,cache)
	[cachef] subdir -> ffff88000b22b778 positive
	[cachef] <== cachefiles_get_directory() = -1 [check]

where -1 is EPERM.

Signed-off-by: David Howells <dhowells@redhat.com>
2014-09-17 23:29:53 +01:00
..
bind.c fs/cachefiles: replace kerror by pr_err 2014-06-06 16:08:14 -07:00
daemon.c fs/cachefiles: replace kerror by pr_err 2014-06-06 16:08:14 -07:00
interface.c fs/cachefiles: replace kerror by pr_err 2014-06-06 16:08:14 -07:00
internal.h fs/cachefiles: replace kerror by pr_err 2014-06-06 16:08:14 -07:00
Kconfig CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
key.c CacheFiles: Downgrade the requirements passed to the allocator 2012-12-20 21:58:25 +00:00
main.c fs/cachefiles: replace kerror by pr_err 2014-06-06 16:08:14 -07:00
Makefile CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
namei.c CacheFiles: Handle rename2 2014-09-17 23:29:53 +01:00
proc.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
rdwr.c cachefiles: remove two unused pagevecs. 2014-09-17 23:29:50 +01:00
security.c fs/cachefiles: replace kerror by pr_err 2014-06-06 16:08:14 -07:00
xattr.c fs/cachefiles: replace kerror by pr_err 2014-06-06 16:08:14 -07:00