diff options
-rw-r--r-- | xlators/features/marker/src/marker-quota.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index 16139fc24..afb93c6ee 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -489,14 +489,14 @@ quota_dirty_inode_readdir (call_frame_t *frame, { quota_local_t *local = NULL; + local = frame->local; + if (op_ret == -1) { local->err = -1; release_lock_on_dirty_inode (frame, NULL, this, 0, 0); return 0; } - local = frame->local; - if (local->fd == NULL) local->fd = fd_ref (fd); @@ -1224,6 +1224,9 @@ quota_fetch_child_size_and_contri (call_frame_t *frame, void *cookie, goto err; } + VALIDATE_OR_GOTO (local->ctx, err); + VALIDATE_OR_GOTO (local->contri, err); + gf_log (this->name, GF_LOG_DEBUG, "%s marked dirty", local->parent_loc.path); priv = this->private; |