Lines Matching refs:vnode
27 struct afs_vnode *vnode) in afs_create_interest() argument
44 new_vi->vid = vnode->volume->vid; in afs_create_interest()
49 new->sb = vnode->vfs_inode.i_sb; in afs_create_interest()
50 new->vid = vnode->volume->vid; in afs_create_interest()
88 int afs_register_server_cb_interest(struct afs_vnode *vnode, in afs_register_server_cb_interest() argument
97 if (vnode->cb_interest && in afs_register_server_cb_interest()
98 likely(vnode->cb_interest == entry->cb_interest)) in afs_register_server_cb_interest()
105 vcbi = vnode->cb_interest; in afs_register_server_cb_interest()
108 afs_put_cb_interest(afs_v2net(vnode), cbi); in afs_register_server_cb_interest()
116 write_seqlock(&vnode->cb_lock); in afs_register_server_cb_interest()
117 old = vnode->cb_interest; in afs_register_server_cb_interest()
118 vnode->cb_interest = cbi; in afs_register_server_cb_interest()
119 write_sequnlock(&vnode->cb_lock); in afs_register_server_cb_interest()
120 afs_put_cb_interest(afs_v2net(vnode), old); in afs_register_server_cb_interest()
129 afs_put_cb_interest(afs_v2net(vnode), cbi); in afs_register_server_cb_interest()
140 new = afs_create_interest(server, vnode); in afs_register_server_cb_interest()
153 afs_put_cb_interest(afs_v2net(vnode), new); in afs_register_server_cb_interest()
161 write_seqlock(&vnode->cb_lock); in afs_register_server_cb_interest()
163 old = vnode->cb_interest; in afs_register_server_cb_interest()
164 vnode->cb_interest = cbi; in afs_register_server_cb_interest()
165 vnode->cb_s_break = cbi->server->cb_s_break; in afs_register_server_cb_interest()
166 vnode->cb_v_break = vnode->volume->cb_v_break; in afs_register_server_cb_interest()
167 clear_bit(AFS_VNODE_CB_PROMISED, &vnode->flags); in afs_register_server_cb_interest()
169 write_sequnlock(&vnode->cb_lock); in afs_register_server_cb_interest()
170 afs_put_cb_interest(afs_v2net(vnode), old); in afs_register_server_cb_interest()
213 void afs_break_callback(struct afs_vnode *vnode) in afs_break_callback() argument
217 write_seqlock(&vnode->cb_lock); in afs_break_callback()
219 clear_bit(AFS_VNODE_NEW_CONTENT, &vnode->flags); in afs_break_callback()
220 if (test_and_clear_bit(AFS_VNODE_CB_PROMISED, &vnode->flags)) { in afs_break_callback()
221 vnode->cb_break++; in afs_break_callback()
222 afs_clear_permits(vnode); in afs_break_callback()
224 if (vnode->lock_state == AFS_VNODE_LOCK_WAITING_FOR_CB) in afs_break_callback()
225 afs_lock_may_be_available(vnode); in afs_break_callback()
228 write_sequnlock(&vnode->cb_lock); in afs_break_callback()
243 struct afs_vnode *vnode; in afs_break_one_callback() local
268 if (fid->vnode == 0 && fid->unique == 0) { in afs_break_one_callback()
279 inode = ilookup5_nowait(cbi->sb, fid->vnode, in afs_break_one_callback()
282 vnode = AFS_FS_I(inode); in afs_break_one_callback()
283 afs_break_callback(vnode); in afs_break_one_callback()
309 callbacks->fid.vnode, in afs_break_callbacks()