summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota/src/quota.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/quota/src/quota.c')
-rw-r--r--xlators/features/quota/src/quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index bfadba8cfda..3b6cfb62ccb 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -96,7 +96,7 @@ quota_inode_loc_fill (inode_t *inode, loc_t *loc)
ignore_parent:
ret = inode_path (inode, NULL, &resolvedpath);
- if (ret < 0) {
+ if (ret <= 0) {
gf_log (this->name, GF_LOG_WARNING,
"cannot construct path for inode (ino:%"PRId64", "
"gfid:%s)", inode->ino,
@@ -479,7 +479,7 @@ quota_get_limit_value (inode_t *inode, xlator_t *this, int64_t *n)
*n = 0;
ret = inode_path (inode, NULL, &path);
- if (ret < 0) {
+ if (ret <= 0) {
ret = -1;
goto out;
}