fscache.h 961 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* NFS filesystem cache interface definitions
  2. *
  3. * Copyright (C) 2008 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  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.
  10. */
  11. #ifndef _NFS_FSCACHE_H
  12. #define _NFS_FSCACHE_H
  13. #include <linux/nfs_fs.h>
  14. #include <linux/nfs_mount.h>
  15. #include <linux/nfs4_mount.h>
  16. #include <linux/fscache.h>
  17. #ifdef CONFIG_NFS_FSCACHE
  18. /*
  19. * fscache-index.c
  20. */
  21. extern struct fscache_netfs nfs_fscache_netfs;
  22. extern int nfs_fscache_register(void);
  23. extern void nfs_fscache_unregister(void);
  24. #else /* CONFIG_NFS_FSCACHE */
  25. static inline int nfs_fscache_register(void) { return 0; }
  26. static inline void nfs_fscache_unregister(void) {}
  27. #endif /* CONFIG_NFS_FSCACHE */
  28. #endif /* _NFS_FSCACHE_H */