Re: + fs-cache-make-kafs-use-fs-cache.patch added to -mm tree

From: Dave Hansen
Date: Tue Aug 08 2006 - 13:27:57 EST


On Fri, 2006-08-04 at 17:09 -0700, akpm@xxxxxxxx wrote:
> The attached patch makes the kAFS filesystem in fs/afs/ use FS-Cache, and
> through it any attached caches. The kAFS filesystem will use caching
> automatically if it's available.

I get the following warning when compiling AFS, but leaving FSCACHE
compiled out in 2.6.18-rc3-mm2:

fs/afs/vnode.c:522: warning: 'afs_vnode_cache_now_uncached' defined but not used

The attached patch fixes it.

Signed-off-by: Dave Hansen <haveblue@xxxxxxxxxx>

lxc-dave/fs/afs/vnode.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/afs/vnode.c~fcache-exports fs/afs/vnode.c
--- lxc/fs/afs/vnode.c~fcache-exports 2006-08-08 10:21:53.000000000 -0700
+++ lxc-dave/fs/afs/vnode.c 2006-08-08 10:22:53.000000000 -0700
@@ -508,7 +508,6 @@ static void afs_vnode_cache_mark_pages_c
}

} /* end afs_vnode_cache_mark_pages_cached() */
-#endif

/*****************************************************************************/
/*
@@ -552,3 +551,4 @@ static void afs_vnode_cache_now_uncached
_leave("");

} /* end afs_vnode_cache_now_uncached() */
+#endif
_


-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/