From: David Howells Date: Wed, 17 Sep 2014 22:28:38 +0000 (+0100) Subject: CacheFiles: Handle rename2 X-Git-Tag: fixes-for-v3.18-merge-window~89^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2cf1f1cc7636bd860e47cd0ad6194da8975f8b5;p=pandora-kernel.git 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 --- Reading git-diff-tree failed