Lines Matching refs:vnode

182 	struct list_head	vnode_link;	/* Link in vnode->wb_keys */
201 * Record of an outstanding read operation on a vnode.
209 struct afs_vnode *vnode; /* The file being read into. */
607 AFS_VNODE_LOCK_NONE, /* The vnode has no lock on the server */
614 AFS_VNODE_LOCK_DELETED, /* The vnode has been deleted whilst we have a lock */
625 struct afs_volume *volume; /* volume on which vnode resides */
631 struct rw_semaphore validate_lock; /* lock for validating this vnode */
637 #define AFS_VNODE_CB_PROMISED 0 /* Set if vnode has a callback promise */
638 #define AFS_VNODE_UNSET 1 /* set if vnode attributes not yet set */
640 #define AFS_VNODE_ZAP_DATA 3 /* set if vnode's data should be invalidated */
641 #define AFS_VNODE_DELETED 4 /* set if vnode deleted on server */
642 #define AFS_VNODE_MOUNTPOINT 5 /* set if vnode is a mountpoint symlink */
666 unsigned int cb_break; /* Break counter on vnode */
672 static inline struct fscache_cookie *afs_vnode_cache(struct afs_vnode *vnode)
675 return netfs_i_cookie(&vnode->netfs);
681 static inline void afs_vnode_set_cache(struct afs_vnode *vnode,
685 vnode->netfs.cache = cookie;
687 mapping_set_release_always(vnode->netfs.inode.i_mapping);
692 * cached security record for one user's attempt to access a vnode
767 struct afs_vnode *vnode;
773 bool put_vnode:1; /* T if we have a ref on the vnode */
778 bool speculative:1; /* T if speculative status fetch (no vnode lock) */
882 static inline void afs_set_cache_aux(struct afs_vnode *vnode,
885 aux->data_version = cpu_to_be64(vnode->status.data_version);
888 static inline void afs_invalidate_cache(struct afs_vnode *vnode, unsigned int flags)
892 afs_set_cache_aux(vnode, &aux);
893 fscache_invalidate(afs_vnode_cache(vnode), &aux,
894 i_size_read(&vnode->netfs.inode), flags);
989 static inline unsigned int afs_calc_vnode_cb_break(struct afs_vnode *vnode)
991 return vnode->cb_break + vnode->cb_v_break;
995 const struct afs_vnode *vnode)
997 return cb_break != (vnode->cb_break + vnode->volume->cb_v_break);
1142 struct afs_vnode *vnode)
1144 op->file[n].vnode = vnode;
1211 static inline struct afs_net *afs_v2net(struct afs_vnode *vnode)
1213 return afs_i2net(&vnode->netfs.inode);
1226 #define afs_stat_v(vnode, n) __afs_stat(&afs_v2net(vnode)->n)
1592 static inline struct inode *AFS_VNODE_TO_I(struct afs_vnode *vnode)
1594 return &vnode->netfs.inode;
1615 static inline void afs_set_i_size(struct afs_vnode *vnode, u64 size)
1617 i_size_write(&vnode->netfs.inode, size);
1618 vnode->netfs.inode.i_blocks = ((size + 1023) >> 10) << 1;
1639 static inline int afs_bad(struct afs_vnode *vnode, enum afs_file_error where)
1641 trace_afs_file_error(vnode, -EIO, where);