cache.h 572 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * V9FS cache definitions.
  4. *
  5. * Copyright (C) 2009 by Abhishek Kulkarni <adkulkar@umail.iu.edu>
  6. */
  7. #ifndef _9P_CACHE_H
  8. #define _9P_CACHE_H
  9. #ifdef CONFIG_9P_FSCACHE
  10. #include <linux/fscache.h>
  11. extern int v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses,
  12. const char *dev_name);
  13. extern void v9fs_cache_inode_get_cookie(struct inode *inode);
  14. #else /* CONFIG_9P_FSCACHE */
  15. static inline void v9fs_cache_inode_get_cookie(struct inode *inode)
  16. {
  17. }
  18. #endif /* CONFIG_9P_FSCACHE */
  19. #endif /* _9P_CACHE_H */