1 /* NFS FS-Cache index structure definition
3 * Copyright (C) 2008 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
12 #include <linux/init.h>
13 #include <linux/kernel.h>
14 #include <linux/sched.h>
16 #include <linux/nfs_fs.h>
17 #include <linux/nfs_fs_sb.h>
18 #include <linux/in6.h>
23 #define NFSDBG_FACILITY NFSDBG_FSCACHE
26 * Define the NFS filesystem for FS-Cache. Upon registration FS-Cache sticks
27 * the cookie for the top-level index object for NFS into here. The top-level
28 * index can than have other cache objects inserted into it.
30 struct fscache_netfs nfs_fscache_netfs = {
36 * Register NFS for caching
38 int nfs_fscache_register(void)
40 return fscache_register_netfs(&nfs_fscache_netfs);
44 * Unregister NFS for caching
46 void nfs_fscache_unregister(void)
48 fscache_unregister_netfs(&nfs_fscache_netfs);