Lines Matching refs:vnode

55 	struct afs_vnode *vnode = op->file[0].vnode;  in afs_get_io_locks()  local
56 struct afs_vnode *vnode2 = op->file[1].vnode; in afs_get_io_locks()
61 mutex_lock(&vnode->io_lock); in afs_get_io_locks()
67 if (!vnode2 || !op->file[1].need_io_lock || vnode == vnode2) in afs_get_io_locks()
70 if (vnode2 > vnode) in afs_get_io_locks()
71 swap(vnode, vnode2); in afs_get_io_locks()
73 if (mutex_lock_interruptible(&vnode->io_lock) < 0) { in afs_get_io_locks()
85 mutex_unlock(&vnode->io_lock); in afs_get_io_locks()
99 struct afs_vnode *vnode = op->file[0].vnode; in afs_drop_io_locks() local
100 struct afs_vnode *vnode2 = op->file[1].vnode; in afs_drop_io_locks()
107 mutex_unlock(&vnode->io_lock); in afs_drop_io_locks()
113 struct afs_vnode *vnode = vp->vnode; in afs_prepare_vnode() local
115 if (vnode) { in afs_prepare_vnode()
116 vp->fid = vnode->fid; in afs_prepare_vnode()
117 vp->dv_before = vnode->status.data_version; in afs_prepare_vnode()
118 vp->cb_break_before = afs_calc_vnode_cb_break(vnode); in afs_prepare_vnode()
119 if (vnode->lock_state != AFS_VNODE_LOCK_NONE) in afs_prepare_vnode()
122 set_bit(AFS_VNODE_MODIFYING, &vnode->flags); in afs_prepare_vnode()
125 if (vp->fid.vnode) in afs_prepare_vnode()
127 index, vp->fid.vid, vp->fid.vnode, vp->fid.unique); in afs_prepare_vnode()
138 struct afs_vnode *vnode = op->file[0].vnode; in afs_begin_vnode_operation() local
140 ASSERT(vnode); in afs_begin_vnode_operation()
231 clear_bit(AFS_VNODE_MODIFYING, &op->file[0].vnode->flags); in afs_put_operation()
232 if (op->file[1].modification && op->file[1].vnode != op->file[0].vnode) in afs_put_operation()
233 clear_bit(AFS_VNODE_MODIFYING, &op->file[1].vnode->flags); in afs_put_operation()
235 iput(&op->file[0].vnode->vfs_inode); in afs_put_operation()
237 iput(&op->file[1].vnode->vfs_inode); in afs_put_operation()
242 iput(&op->more_files[i].vnode->vfs_inode); in afs_put_operation()