• Home
  • Raw
  • Download

Lines Matching refs:dvnode

26 	struct afs_vnode *dvnode = dvp->vnode;  in afs_silly_rename_edit_dir()  local
34 if (dvnode->silly_key != op->key) { in afs_silly_rename_edit_dir()
35 key_put(dvnode->silly_key); in afs_silly_rename_edit_dir()
36 dvnode->silly_key = key_get(op->key); in afs_silly_rename_edit_dir()
39 down_write(&dvnode->validate_lock); in afs_silly_rename_edit_dir()
40 if (test_bit(AFS_VNODE_DIR_VALID, &dvnode->flags) && in afs_silly_rename_edit_dir()
41 dvnode->status.data_version == dvp->dv_before + dvp->dv_delta) { in afs_silly_rename_edit_dir()
42 afs_edit_dir_remove(dvnode, &old->d_name, in afs_silly_rename_edit_dir()
44 afs_edit_dir_add(dvnode, &new->d_name, in afs_silly_rename_edit_dir()
47 up_write(&dvnode->validate_lock); in afs_silly_rename_edit_dir()
60 static int afs_do_silly_rename(struct afs_vnode *dvnode, struct afs_vnode *vnode, in afs_do_silly_rename() argument
68 op = afs_alloc_operation(key, dvnode->volume); in afs_do_silly_rename()
72 afs_op_set_vnode(op, 0, dvnode); in afs_do_silly_rename()
73 afs_op_set_vnode(op, 1, dvnode); in afs_do_silly_rename()
100 int afs_sillyrename(struct afs_vnode *dvnode, struct afs_vnode *vnode, in afs_sillyrename() argument
136 ret = afs_do_silly_rename(dvnode, vnode, dentry, sdentry, key); in afs_sillyrename()
170 struct afs_vnode *dvnode = dvp->vnode; in afs_silly_unlink_edit_dir() local
173 down_write(&dvnode->validate_lock); in afs_silly_unlink_edit_dir()
174 if (test_bit(AFS_VNODE_DIR_VALID, &dvnode->flags) && in afs_silly_unlink_edit_dir()
175 dvnode->status.data_version == dvp->dv_before + dvp->dv_delta) in afs_silly_unlink_edit_dir()
176 afs_edit_dir_remove(dvnode, &op->dentry->d_name, in afs_silly_unlink_edit_dir()
178 up_write(&dvnode->validate_lock); in afs_silly_unlink_edit_dir()
192 static int afs_do_silly_unlink(struct afs_vnode *dvnode, struct afs_vnode *vnode, in afs_do_silly_unlink() argument
199 op = afs_alloc_operation(NULL, dvnode->volume); in afs_do_silly_unlink()
203 afs_op_set_vnode(op, 0, dvnode); in afs_do_silly_unlink()
237 struct afs_vnode *dvnode = AFS_FS_I(d_inode(dentry->d_parent)); in afs_silly_iput() local
246 down_read(&dvnode->rmdir_lock); in afs_silly_iput()
250 up_read(&dvnode->rmdir_lock); in afs_silly_iput()
266 up_read(&dvnode->rmdir_lock); in afs_silly_iput()
277 afs_do_silly_unlink(dvnode, vnode, dentry, dvnode->silly_key); in afs_silly_iput()
278 up_read(&dvnode->rmdir_lock); in afs_silly_iput()