Lines Matching refs:op

15 static void afs_silly_rename_success(struct afs_operation *op)
17 _enter("op=%08x", op->debug_id);
19 afs_check_dir_conflict(op, &op->file[0]);
20 afs_vnode_commit_status(op, &op->file[0]);
23 static void afs_silly_rename_edit_dir(struct afs_operation *op)
25 struct afs_vnode_param *dvp = &op->file[0];
27 struct afs_vnode *vnode = AFS_FS_I(d_inode(op->dentry));
28 struct dentry *old = op->dentry;
29 struct dentry *new = op->dentry_2;
34 if (dvnode->silly_key != op->key) {
36 dvnode->silly_key = key_get(op->key);
64 struct afs_operation *op;
68 op = afs_alloc_operation(key, dvnode->volume);
69 if (IS_ERR(op))
70 return PTR_ERR(op);
72 afs_op_set_vnode(op, 0, dvnode);
73 afs_op_set_vnode(op, 1, dvnode);
74 op->file[0].dv_delta = 1;
75 op->file[1].dv_delta = 1;
76 op->file[0].modification = true;
77 op->file[1].modification = true;
78 op->file[0].update_ctime = true;
79 op->file[1].update_ctime = true;
81 op->dentry = old;
82 op->dentry_2 = new;
83 op->ops = &afs_silly_rename_operation;
86 return afs_do_sync_operation(op);
158 static void afs_silly_unlink_success(struct afs_operation *op)
160 _enter("op=%08x", op->debug_id);
161 afs_check_dir_conflict(op, &op->file[0]);
162 afs_vnode_commit_status(op, &op->file[0]);
163 afs_vnode_commit_status(op, &op->file[1]);
164 afs_update_dentry_version(op, &op->file[0], op->dentry);
167 static void afs_silly_unlink_edit_dir(struct afs_operation *op)
169 struct afs_vnode_param *dvp = &op->file[0];
172 _enter("op=%08x", op->debug_id);
176 afs_edit_dir_remove(dvnode, &op->dentry->d_name,
195 struct afs_operation *op;
199 op = afs_alloc_operation(NULL, dvnode->volume);
200 if (IS_ERR(op))
201 return PTR_ERR(op);
203 afs_op_set_vnode(op, 0, dvnode);
204 afs_op_set_vnode(op, 1, vnode);
205 op->file[0].dv_delta = 1;
206 op->file[0].modification = true;
207 op->file[0].update_ctime = true;
208 op->file[1].op_unlinked = true;
209 op->file[1].update_ctime = true;
211 op->dentry = dentry;
212 op->ops = &afs_silly_unlink_operation;
215 afs_begin_vnode_operation(op);
216 afs_wait_for_operation(op);
221 if (op->error == 0 && (op->flags & AFS_OPERATION_DIR_CONFLICT)) {
222 op->file[1].update_ctime = false;
223 op->fetch_status.which = 1;
224 op->ops = &afs_fetch_status_operation;
225 afs_begin_vnode_operation(op);
226 afs_wait_for_operation(op);
229 return afs_put_operation(op);