diff options
| author | Raghavendra G <raghavendra@gluster.com> | 2012-04-03 13:17:28 +0530 | 
|---|---|---|
| committer | Vijay Bellur <vijay@gluster.com> | 2012-04-03 00:57:56 -0700 | 
| commit | 0e4c74861f762d4af7b7d8ffce5384920a6aa335 (patch) | |
| tree | ca70b6269aeb22a8590faa8393f0d0c3e52a2ef4 | |
| parent | e5b5bb4de46a2a37c8ff392c456c306026517269 (diff) | |
quota: log msgs indicating NULL parent inode in DEBUG level.
with name-less lookups its common to hit situations where parent
inode is NULL.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Change-Id: I980b14c3d4691e850ae15768f73cf1b7d867e930
BUG: 809032
Reviewed-on: http://review.gluster.com/3071
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
| -rw-r--r-- | xlators/features/marker/src/marker-quota.c | 4 | ||||
| -rw-r--r-- | xlators/features/quota/src/quota.c | 8 | 
2 files changed, 6 insertions, 6 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index c8bb9e490..621b401b4 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -1389,7 +1389,7 @@ mq_release_parent_lock (call_frame_t *frame, void *cookie,          UNLOCK (&ctx->lock);          if (local->parent_loc.inode == NULL) { -                gf_log (this->name, GF_LOG_WARNING, +                gf_log (this->name, GF_LOG_DEBUG,                          "Invalid parent inode.");                  goto err;          } @@ -2452,7 +2452,7 @@ mq_reduce_parent_size (xlator_t *this, loc_t *loc, int64_t contri)          if (local->parent_loc.inode == NULL) {                  ret = -1; -                gf_log (this->name, GF_LOG_WARNING, +                gf_log (this->name, GF_LOG_DEBUG,                          "Inode is NULL, so can't stackwind.");                  goto out;          } diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 10b61721f..77218bc4e 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -89,7 +89,7 @@ quota_inode_loc_fill (inode_t *inode, loc_t *loc)          parent = inode_parent (inode, 0, NULL);          if (!parent) { -                gf_log (this->name, GF_LOG_WARNING, +                gf_log (this->name, GF_LOG_DEBUG,                          "cannot find parent for inode (gfid:%s)",                          uuid_utoa (inode->gfid));                  goto err; @@ -98,7 +98,7 @@ quota_inode_loc_fill (inode_t *inode, loc_t *loc)  ignore_parent:          ret = inode_path (inode, NULL, &resolvedpath);          if (ret < 0) { -                gf_log (this->name, GF_LOG_WARNING, +                gf_log (this->name, GF_LOG_DEBUG,                          "cannot construct path for inode (gfid:%s)",                          uuid_utoa (inode->gfid));                  goto err; @@ -388,7 +388,7 @@ quota_check_limit (call_frame_t *frame, inode_t *inode, xlator_t *this,                  }                  if (parent == NULL) { -                        gf_log (this->name, GF_LOG_WARNING, +                        gf_log (this->name, GF_LOG_DEBUG,                                  "cannot find parent for inode (gfid:%s), hence "                                  "aborting enforcing quota-limits and continuing"                                  " with the fop", uuid_utoa (_inode->gfid)); @@ -774,7 +774,7 @@ quota_update_size (xlator_t *this, inode_t *inode, char *name, uuid_t par,                  parent = inode_parent (_inode, trav_uuid, name);                  if (parent == NULL) { -                        gf_log (this->name, GF_LOG_WARNING, +                        gf_log (this->name, GF_LOG_DEBUG,                                  "cannot find parent for inode (gfid:%s), hence "                                  "aborting size updation of parents",                                  uuid_utoa (_inode->gfid));  | 
