summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src')
0 files changed, 0 insertions, 0 deletions
LL; uint32_t flags = 0; upcall_local_t *local = NULL; EXIT_IF_UPCALL_OFF (this, out); client = frame->root->client; local = frame->local; if ((op_ret < 0) || !local) { goto out; } flags = UP_UPDATE_CLIENT; upcall_cache_invalidate (frame, this, client, local->inode, flags, NULL, NULL, NULL); out: UPCALL_STACK_UNWIND (lk, frame, op_ret, op_errno, lock, xdata); return 0; } int32_t up_lk (call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t cmd, struct gf_flock *flock, dict_t *xdata) { int32_t op_errno = -1; upcall_local_t *local = NULL; EXIT_IF_UPCALL_OFF (this, out); local = upcall_local_init (frame, this, fd->inode); if (!local) { op_errno = ENOMEM; goto err; } out: STACK_WIND (frame, up_lk_cbk, FIRST_CHILD(this), FIRST_CHILD(this)->fops->lk, fd, cmd, flock, xdata); return 0; err: op_errno = (op_errno == -1) ? errno : op_errno; UPCALL_STACK_UNWIND (lk, frame, -1, op_errno, NULL, NULL); return 0; } int32_t up_truncate_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int op_ret, int op_errno, struct iatt *prebuf, struct iatt *postbuf, dict_t *xdata) { client_t *client = NULL; uint32_t flags = 0; upcall_local_t *local = NULL; EXIT_IF_UPCALL_OFF (this, out); client = frame->root->client; local = frame->local; if ((op_ret < 0) || !local) { goto out; } flags = UP_WRITE_FLAGS; upcall_cache_invalidate (frame, this, client, local->inode, flags,