Cachefiles: Fix up scripted S_ISDIR/S_ISREG/S_ISLNK conversions
authorDavid Howells <dhowells@redhat.com>
Thu, 29 Jan 2015 12:02:36 +0000 (12:02 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Feb 2015 16:38:41 +0000 (11:38 -0500)
commitce40fa78ef8f0e813392903c96de65b947298d16
tree0b4a5db5feafed3cadaab68bd77d0c7e6b049ef1
parente36cb0b89ce20b4f8786a57e8a6bc8476f577650
Cachefiles: Fix up scripted S_ISDIR/S_ISREG/S_ISLNK conversions

Fix up the following scripted S_ISDIR/S_ISREG/S_ISLNK conversions (or lack
thereof) in cachefiles:

 (1) Cachefiles mostly wants to use d_can_lookup() rather than d_is_dir() as
     it doesn't want to deal with automounts in its cache.

 (2) Coccinelle didn't find S_IS* expressions in ASSERT() statements in
     cachefiles.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/cachefiles/daemon.c
fs/cachefiles/interface.c
fs/cachefiles/namei.c
fs/cachefiles/rdwr.c