Lines Matching refs:inode

44 extern void cifs_fscache_get_inode_cookie(struct inode *inode);
45 extern void cifs_fscache_release_inode_cookie(struct inode *);
46 extern void cifs_fscache_unuse_inode_cookie(struct inode *inode, bool update);
49 void cifs_fscache_fill_coherency(struct inode *inode, in cifs_fscache_fill_coherency() argument
52 struct timespec64 ctime = inode_get_ctime(inode); in cifs_fscache_fill_coherency()
53 struct timespec64 mtime = inode_get_mtime(inode); in cifs_fscache_fill_coherency()
63 static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) in cifs_inode_cookie() argument
65 return netfs_i_cookie(&CIFS_I(inode)->netfs); in cifs_inode_cookie()
68 static inline void cifs_invalidate_cache(struct inode *inode, unsigned int flags) in cifs_invalidate_cache() argument
72 cifs_fscache_fill_coherency(inode, &cd); in cifs_invalidate_cache()
73 fscache_invalidate(cifs_inode_cookie(inode), &cd, in cifs_invalidate_cache()
74 i_size_read(inode), flags); in cifs_invalidate_cache()
77 extern int __cifs_fscache_query_occupancy(struct inode *inode,
82 static inline int cifs_fscache_query_occupancy(struct inode *inode, in cifs_fscache_query_occupancy() argument
87 if (!cifs_inode_cookie(inode)) in cifs_fscache_query_occupancy()
89 return __cifs_fscache_query_occupancy(inode, first, nr_pages, in cifs_fscache_query_occupancy()
93 extern int __cifs_readpage_from_fscache(struct inode *pinode, struct page *ppage);
94 extern void __cifs_readahead_to_fscache(struct inode *pinode, loff_t pos, size_t len);
97 static inline int cifs_readpage_from_fscache(struct inode *inode, in cifs_readpage_from_fscache() argument
100 if (cifs_inode_cookie(inode)) in cifs_readpage_from_fscache()
101 return __cifs_readpage_from_fscache(inode, page); in cifs_readpage_from_fscache()
105 static inline void cifs_readahead_to_fscache(struct inode *inode, in cifs_readahead_to_fscache() argument
108 if (cifs_inode_cookie(inode)) in cifs_readahead_to_fscache()
109 __cifs_readahead_to_fscache(inode, pos, len); in cifs_readahead_to_fscache()
112 static inline bool cifs_fscache_enabled(struct inode *inode) in cifs_fscache_enabled() argument
114 return fscache_cookie_enabled(cifs_inode_cookie(inode)); in cifs_fscache_enabled()
119 void cifs_fscache_fill_coherency(struct inode *inode, in cifs_fscache_fill_coherency() argument
127 static inline void cifs_fscache_get_inode_cookie(struct inode *inode) {} in cifs_fscache_get_inode_cookie() argument
128 static inline void cifs_fscache_release_inode_cookie(struct inode *inode) {} in cifs_fscache_release_inode_cookie() argument
129 static inline void cifs_fscache_unuse_inode_cookie(struct inode *inode, bool update) {} in cifs_fscache_unuse_inode_cookie() argument
130 static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; } in cifs_inode_cookie() argument
131 static inline void cifs_invalidate_cache(struct inode *inode, unsigned int flags) {} in cifs_invalidate_cache() argument
132 static inline bool cifs_fscache_enabled(struct inode *inode) { return false; } in cifs_fscache_enabled() argument
134 static inline int cifs_fscache_query_occupancy(struct inode *inode, in cifs_fscache_query_occupancy() argument
145 cifs_readpage_from_fscache(struct inode *inode, struct page *page) in cifs_readpage_from_fscache() argument
151 void cifs_readahead_to_fscache(struct inode *inode, loff_t pos, size_t len) {} in cifs_readahead_to_fscache() argument