• Home
  • Raw
  • Download

Lines Matching refs:inode

186 	struct inode		vfs_inode;
215 static inline struct nfs_inode *NFS_I(const struct inode *inode) in NFS_I() argument
217 return container_of(inode, struct nfs_inode, vfs_inode); in NFS_I()
225 static inline struct nfs_fh *NFS_FH(const struct inode *inode) in NFS_FH() argument
227 return &NFS_I(inode)->fh; in NFS_FH()
230 static inline struct nfs_server *NFS_SERVER(const struct inode *inode) in NFS_SERVER() argument
232 return NFS_SB(inode->i_sb); in NFS_SERVER()
235 static inline struct rpc_clnt *NFS_CLIENT(const struct inode *inode) in NFS_CLIENT() argument
237 return NFS_SERVER(inode)->client; in NFS_CLIENT()
240 static inline const struct nfs_rpc_ops *NFS_PROTO(const struct inode *inode) in NFS_PROTO() argument
242 return NFS_SERVER(inode)->nfs_client->rpc_ops; in NFS_PROTO()
245 static inline unsigned NFS_MINATTRTIMEO(const struct inode *inode) in NFS_MINATTRTIMEO() argument
247 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MINATTRTIMEO()
248 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO()
251 static inline unsigned NFS_MAXATTRTIMEO(const struct inode *inode) in NFS_MAXATTRTIMEO() argument
253 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MAXATTRTIMEO()
254 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO()
257 static inline int NFS_STALE(const struct inode *inode) in NFS_STALE() argument
259 return test_bit(NFS_INO_STALE, &NFS_I(inode)->flags); in NFS_STALE()
262 static inline struct fscache_cookie *nfs_i_fscache(struct inode *inode) in nfs_i_fscache() argument
265 return NFS_I(inode)->fscache; in nfs_i_fscache()
271 static inline __u64 NFS_FILEID(const struct inode *inode) in NFS_FILEID() argument
273 return NFS_I(inode)->fileid; in NFS_FILEID()
276 static inline void set_nfs_fileid(struct inode *inode, __u64 fileid) in set_nfs_fileid() argument
278 NFS_I(inode)->fileid = fileid; in set_nfs_fileid()
281 static inline void nfs_mark_for_revalidate(struct inode *inode) in nfs_mark_for_revalidate() argument
283 struct nfs_inode *nfsi = NFS_I(inode); in nfs_mark_for_revalidate()
285 spin_lock(&inode->i_lock); in nfs_mark_for_revalidate()
290 if (S_ISDIR(inode->i_mode)) in nfs_mark_for_revalidate()
292 spin_unlock(&inode->i_lock); in nfs_mark_for_revalidate()
295 static inline int nfs_server_capable(struct inode *inode, int cap) in nfs_server_capable() argument
297 return NFS_SERVER(inode)->caps & cap; in nfs_server_capable()
311 static inline unsigned long nfs_save_change_attribute(struct inode *dir) in nfs_save_change_attribute()
324 static inline int nfs_verify_change_attribute(struct inode *dir, unsigned long chattr) in nfs_verify_change_attribute()
333 extern void nfs_zap_mapping(struct inode *inode, struct address_space *mapping);
334 extern void nfs_zap_caches(struct inode *);
335 extern void nfs_invalidate_atime(struct inode *);
336 extern struct inode *nfs_fhget(struct super_block *, struct nfs_fh *,
338 extern int nfs_refresh_inode(struct inode *, struct nfs_fattr *);
339 extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr);
340 extern int nfs_post_op_update_inode_force_wcc(struct inode *inode, struct nfs_fattr *fattr);
341 extern int nfs_post_op_update_inode_force_wcc_locked(struct inode *inode, struct nfs_fattr *fattr);
343 extern void nfs_access_add_cache(struct inode *, struct nfs_access_entry *);
345 extern int nfs_permission(struct inode *, int);
346 extern int nfs_open(struct inode *, struct file *);
347 extern int nfs_attribute_timeout(struct inode *inode);
348 extern int nfs_attribute_cache_expired(struct inode *inode);
349 extern int nfs_revalidate_inode(struct nfs_server *server, struct inode *inode);
350 extern int nfs_revalidate_inode_rcu(struct nfs_server *server, struct inode *inode);
351 extern int __nfs_revalidate_inode(struct nfs_server *, struct inode *);
352 extern int nfs_revalidate_mapping(struct inode *inode, struct address_space *mapping);
353 extern int nfs_revalidate_mapping_rcu(struct inode *inode);
355 extern void nfs_setattr_update_inode(struct inode *inode, struct iattr *attr, struct nfs_fattr *);
356 extern void nfs_setsecurity(struct inode *inode, struct nfs_fattr *fattr,
360 extern struct nfs_open_context *nfs_find_open_context(struct inode *inode, struct rpc_cred *cred, f…
457 extern void nfs_force_lookup_revalidate(struct inode *dir);
460 extern int nfs_may_open(struct inode *inode, struct rpc_cred *cred, int openflags);
461 extern void nfs_access_zap_cache(struct inode *inode);
490 extern void nfs_complete_unlink(struct dentry *dentry, struct inode *);
505 extern int nfs_sync_inode(struct inode *inode);
506 extern int nfs_wb_all(struct inode *inode);
507 extern int nfs_wb_single_page(struct inode *inode, struct page *page, bool launder);
508 extern int nfs_wb_page_cancel(struct inode *inode, struct page* page);
509 extern int nfs_commit_inode(struct inode *, int);
514 nfs_wb_launder_page(struct inode *inode, struct page *page) in nfs_wb_launder_page() argument
516 return nfs_wb_single_page(inode, page, true); in nfs_wb_launder_page()
520 nfs_wb_page(struct inode *inode, struct page *page) in nfs_wb_page() argument
522 return nfs_wb_single_page(inode, page, false); in nfs_wb_page()
526 nfs_have_writebacks(struct inode *inode) in nfs_have_writebacks() argument
528 return NFS_I(inode)->nrequests != 0; in nfs_have_writebacks()
537 extern int nfs_readpage_async(struct nfs_open_context *, struct inode *,