From: David Howells <dhowells@redhat.com>
Subject: [PATCH] CacheFiles: Make CacheFiles contingent on CONFIG_BLOCK=y

CacheFiles is probably only useful for filesystems that are block-based, so
make it contingent on CONFIG_BLOCK=y.

This avoids the following warning:

build-r7417.out:/local/linsrc/linux-next-20081218/fs/cachefiles/cf-interface.c:\
357: error: implicit declaration of function 'fsync_super'
build-r7417.out:make[3]: *** [fs/cachefiles/cf-interface.o] Error 1

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
---
diff --git a/fs/cachefiles/Kconfig b/fs/cachefiles/Kconfig
index 11f54c3..80e9c61 100644
--- a/fs/cachefiles/Kconfig
+++ b/fs/cachefiles/Kconfig
@@ -1,7 +1,7 @@
 
 config CACHEFILES
 	tristate "Filesystem caching on files"
-	depends on FSCACHE
+	depends on FSCACHE && BLOCK
 	help
 	  This permits use of a mounted filesystem as a cache for other
 	  filesystems - primarily networking filesystems - thus allowing fast
