Lines Matching refs:vnode
179 struct list_head vnode_link; /* Link in vnode->wb_keys */
198 * Record of an outstanding read operation on a vnode.
211 struct afs_vnode *vnode;
599 AFS_VNODE_LOCK_NONE, /* The vnode has no lock on the server */
606 AFS_VNODE_LOCK_DELETED, /* The vnode has been deleted whilst we have a lock */
618 struct afs_volume *volume; /* volume on which vnode resides */
627 struct rw_semaphore validate_lock; /* lock for validating this vnode */
633 #define AFS_VNODE_CB_PROMISED 0 /* Set if vnode has a callback promise */
634 #define AFS_VNODE_UNSET 1 /* set if vnode attributes not yet set */
636 #define AFS_VNODE_ZAP_DATA 3 /* set if vnode's data should be invalidated */
637 #define AFS_VNODE_DELETED 4 /* set if vnode deleted on server */
638 #define AFS_VNODE_MOUNTPOINT 5 /* set if vnode is a mountpoint symlink */
658 unsigned int cb_break; /* Break counter on vnode */
664 static inline struct fscache_cookie *afs_vnode_cache(struct afs_vnode *vnode)
667 return vnode->cache;
674 * cached security record for one user's attempt to access a vnode
748 struct afs_vnode *vnode;
754 bool put_vnode:1; /* T if we have a ref on the vnode */
759 bool speculative:1; /* T if speculative status fetch (no vnode lock) */
968 static inline unsigned int afs_calc_vnode_cb_break(struct afs_vnode *vnode)
970 return vnode->cb_break + vnode->cb_v_break;
974 const struct afs_vnode *vnode)
976 return cb_break != (vnode->cb_break + vnode->volume->cb_v_break);
1118 struct afs_vnode *vnode)
1120 op->file[n].vnode = vnode;
1185 static inline struct afs_net *afs_v2net(struct afs_vnode *vnode)
1187 return afs_i2net(&vnode->vfs_inode);
1200 #define afs_stat_v(vnode, n) __afs_stat(&afs_v2net(vnode)->n)
1557 static inline struct inode *AFS_VNODE_TO_I(struct afs_vnode *vnode)
1559 return &vnode->vfs_inode;
1580 static inline void afs_set_i_size(struct afs_vnode *vnode, u64 size)
1582 i_size_write(&vnode->vfs_inode, size);
1583 vnode->vfs_inode.i_blocks = ((size + 1023) >> 10) << 1;
1604 static inline int afs_bad(struct afs_vnode *vnode, enum afs_file_error where)
1606 trace_afs_file_error(vnode, -EIO, where);