From 298eddc58296152c175797546fa9c6c3a90046d1 Mon Sep 17 00:00:00 2001 From: Junaid Date: Mon, 17 Oct 2011 12:58:26 +0530 Subject: features/marker-quota: Donot log when inode or inode-ctx is NULL. When running rm -rf from mount point, quota-updation process may endup in a state where the inode is already removed from the gluster inode table, but the updation has process is still in progress. This is not a error condition because the updation is done asynchronously. Change-Id: I2d3aad716bb1c971115004a70ca76e2dd5088e44 BUG: 3609 Reviewed-on: http://review.gluster.com/603 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/marker/src/marker-quota-helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/features/marker/src/marker-quota-helper.c b/xlators/features/marker/src/marker-quota-helper.c index b487af4a9..10746254d 100644 --- a/xlators/features/marker/src/marker-quota-helper.c +++ b/xlators/features/marker/src/marker-quota-helper.c @@ -136,8 +136,8 @@ mq_get_contribution_node (inode_t *inode, quota_inode_ctx_t *ctx) inode_contribution_t *contri = NULL; inode_contribution_t *temp = NULL; - GF_VALIDATE_OR_GOTO ("marker", inode, out); - GF_VALIDATE_OR_GOTO ("marker", ctx, out); + if (!inode || !ctx) + goto out; list_for_each_entry (temp, &ctx->contribution_head, contri_list) { if (uuid_compare (temp->gfid, inode->gfid) == 0) { -- cgit