Lines Matching refs:inode
208 struct inode vfs_inode;
286 static inline struct nfs_inode *NFS_I(const struct inode *inode) in NFS_I() argument
288 return container_of(inode, struct nfs_inode, vfs_inode); in NFS_I()
296 static inline struct nfs_fh *NFS_FH(const struct inode *inode) in NFS_FH() argument
298 return &NFS_I(inode)->fh; in NFS_FH()
301 static inline struct nfs_server *NFS_SERVER(const struct inode *inode) in NFS_SERVER() argument
303 return NFS_SB(inode->i_sb); in NFS_SERVER()
306 static inline struct rpc_clnt *NFS_CLIENT(const struct inode *inode) in NFS_CLIENT() argument
308 return NFS_SERVER(inode)->client; in NFS_CLIENT()
311 static inline const struct nfs_rpc_ops *NFS_PROTO(const struct inode *inode) in NFS_PROTO() argument
313 return NFS_SERVER(inode)->nfs_client->rpc_ops; in NFS_PROTO()
316 static inline unsigned NFS_MINATTRTIMEO(const struct inode *inode) in NFS_MINATTRTIMEO() argument
318 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MINATTRTIMEO()
319 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO()
322 static inline unsigned NFS_MAXATTRTIMEO(const struct inode *inode) in NFS_MAXATTRTIMEO() argument
324 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MAXATTRTIMEO()
325 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO()
328 static inline int NFS_STALE(const struct inode *inode) in NFS_STALE() argument
330 return test_bit(NFS_INO_STALE, &NFS_I(inode)->flags); in NFS_STALE()
333 static inline struct fscache_cookie *nfs_i_fscache(struct inode *inode) in nfs_i_fscache() argument
336 return NFS_I(inode)->fscache; in nfs_i_fscache()
342 static inline __u64 NFS_FILEID(const struct inode *inode) in NFS_FILEID() argument
344 return NFS_I(inode)->fileid; in NFS_FILEID()
347 static inline void set_nfs_fileid(struct inode *inode, __u64 fileid) in set_nfs_fileid() argument
349 NFS_I(inode)->fileid = fileid; in set_nfs_fileid()
352 static inline void nfs_mark_for_revalidate(struct inode *inode) in nfs_mark_for_revalidate() argument
354 struct nfs_inode *nfsi = NFS_I(inode); in nfs_mark_for_revalidate()
356 spin_lock(&inode->i_lock); in nfs_mark_for_revalidate()
362 if (S_ISDIR(inode->i_mode)) in nfs_mark_for_revalidate()
364 spin_unlock(&inode->i_lock); in nfs_mark_for_revalidate()
367 static inline int nfs_server_capable(struct inode *inode, int cap) in nfs_server_capable() argument
369 return NFS_SERVER(inode)->caps & cap; in nfs_server_capable()
378 static inline unsigned long nfs_save_change_attribute(struct inode *dir) in nfs_save_change_attribute()
387 extern void nfs_zap_mapping(struct inode *inode, struct address_space *mapping);
388 extern void nfs_zap_caches(struct inode *);
389 extern void nfs_set_inode_stale(struct inode *inode);
390 extern void nfs_invalidate_atime(struct inode *);
391 extern struct inode *nfs_fhget(struct super_block *, struct nfs_fh *,
393 struct inode *nfs_ilookup(struct super_block *sb, struct nfs_fattr *, struct nfs_fh *);
394 extern int nfs_refresh_inode(struct inode *, struct nfs_fattr *);
395 extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr);
396 extern int nfs_post_op_update_inode_force_wcc(struct inode *inode, struct nfs_fattr *fattr);
397 extern int nfs_post_op_update_inode_force_wcc_locked(struct inode *inode, struct nfs_fattr *fattr);
400 extern void nfs_access_add_cache(struct inode *, struct nfs_access_entry *);
402 extern int nfs_permission(struct user_namespace *, struct inode *, int);
403 extern int nfs_open(struct inode *, struct file *);
404 extern int nfs_attribute_cache_expired(struct inode *inode);
405 extern int nfs_revalidate_inode(struct inode *inode, unsigned long flags);
406 extern int __nfs_revalidate_inode(struct nfs_server *, struct inode *);
408 extern bool nfs_mapping_need_revalidate_inode(struct inode *inode);
409 extern int nfs_revalidate_mapping(struct inode *inode, struct address_space *mapping);
410 extern int nfs_revalidate_mapping_rcu(struct inode *inode);
412 extern void nfs_setattr_update_inode(struct inode *inode, struct iattr *attr, struct nfs_fattr *);
413 extern void nfs_setsecurity(struct inode *inode, struct nfs_fattr *fattr,
417 extern struct nfs_open_context *nfs_find_open_context(struct inode *inode, const struct cred *cred,…
527 extern void nfs_force_lookup_revalidate(struct inode *dir);
530 extern void nfs_clear_verifier_delegated(struct inode *inode);
537 extern int nfs_may_open(struct inode *inode, const struct cred *cred, int openflags);
538 extern void nfs_access_zap_cache(struct inode *inode);
539 extern int nfs_access_get_cached(struct inode *inode, const struct cred *cred,
569 extern void nfs_complete_unlink(struct dentry *dentry, struct inode *);
584 extern int nfs_sync_inode(struct inode *inode);
585 extern int nfs_wb_all(struct inode *inode);
586 extern int nfs_wb_page(struct inode *inode, struct page *page);
587 extern int nfs_wb_page_cancel(struct inode *inode, struct page* page);
588 extern int nfs_commit_inode(struct inode *, int);
594 nfs_have_writebacks(struct inode *inode) in nfs_have_writebacks() argument
596 if (S_ISREG(inode->i_mode)) in nfs_have_writebacks()
597 return atomic_long_read(&NFS_I(inode)->nrequests) != 0; in nfs_have_writebacks()