Lines Matching refs:vnode
244 struct afs_vnode *vnode; /* The file being read into. */ member
747 static inline struct fscache_cookie *afs_vnode_cache(struct afs_vnode *vnode) in afs_vnode_cache() argument
750 return netfs_i_cookie(&vnode->netfs); in afs_vnode_cache()
756 static inline void afs_vnode_set_cache(struct afs_vnode *vnode, in afs_vnode_set_cache() argument
760 vnode->netfs.cache = cookie; in afs_vnode_set_cache()
762 mapping_set_release_always(vnode->netfs.inode.i_mapping); in afs_vnode_set_cache()
851 struct afs_vnode *vnode; member
971 static inline void afs_set_cache_aux(struct afs_vnode *vnode, in afs_set_cache_aux() argument
974 aux->data_version = cpu_to_be64(vnode->status.data_version); in afs_set_cache_aux()
977 static inline void afs_invalidate_cache(struct afs_vnode *vnode, unsigned int flags) in afs_invalidate_cache() argument
981 afs_set_cache_aux(vnode, &aux); in afs_invalidate_cache()
982 fscache_invalidate(afs_vnode_cache(vnode), &aux, in afs_invalidate_cache()
983 i_size_read(&vnode->netfs.inode), flags); in afs_invalidate_cache()
1023 static inline unsigned int afs_calc_vnode_cb_break(struct afs_vnode *vnode) in afs_calc_vnode_cb_break() argument
1025 return vnode->cb_break + vnode->cb_ro_snapshot + vnode->cb_scrub; in afs_calc_vnode_cb_break()
1029 const struct afs_vnode *vnode) in afs_cb_is_broken() argument
1031 return cb_break != (vnode->cb_break + in afs_cb_is_broken()
1032 atomic_read(&vnode->volume->cb_ro_snapshot) + in afs_cb_is_broken()
1033 atomic_read(&vnode->volume->cb_scrub)); in afs_cb_is_broken()
1076 void afs_edit_dir_update_dotdot(struct afs_vnode *vnode, struct afs_vnode *new_dvnode,
1175 struct afs_vnode *vnode) in afs_op_set_vnode() argument
1177 op->file[n].vnode = vnode; in afs_op_set_vnode()
1246 static inline struct afs_net *afs_v2net(struct afs_vnode *vnode) in afs_v2net() argument
1248 return afs_i2net(&vnode->netfs.inode); in afs_v2net()
1261 #define afs_stat_v(vnode, n) __afs_stat(&afs_v2net(vnode)->n) argument
1528 bool afs_check_validity(const struct afs_vnode *vnode);
1530 int afs_validate(struct afs_vnode *vnode, struct key *key);
1662 static inline struct inode *AFS_VNODE_TO_I(struct afs_vnode *vnode) in AFS_VNODE_TO_I() argument
1664 return &vnode->netfs.inode; in AFS_VNODE_TO_I()
1685 static inline void afs_set_i_size(struct afs_vnode *vnode, u64 size) in afs_set_i_size() argument
1687 i_size_write(&vnode->netfs.inode, size); in afs_set_i_size()
1688 vnode->netfs.inode.i_blocks = ((size + 1023) >> 10) << 1; in afs_set_i_size()
1709 static inline int afs_bad(struct afs_vnode *vnode, enum afs_file_error where) in afs_bad() argument
1711 trace_afs_file_error(vnode, -EIO, where); in afs_bad()