summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-04-16 10:03:53 +0000
committerAnand Avati <avati@gluster.com>2011-04-16 10:51:43 -0700
commit3e873600920a180960e6730a531ba7a5912f5543 (patch)
tree5dd36a870a5fbb81d47ab4c8b537d73f09e9f93a
parente52a0cc23b16bf653ce544caaffa0e7ffb5fab4e (diff)
features/marker-quota: fixes in self-healing of dirty inode code path.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2649 (Quota: size field is not getting updated properly) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2649
-rw-r--r--xlators/features/marker/src/marker-quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c
index cc109fecb..9a7bf868d 100644
--- a/xlators/features/marker/src/marker-quota.c
+++ b/xlators/features/marker/src/marker-quota.c
@@ -222,7 +222,7 @@ update_size_xattr (call_frame_t *frame, void *cookie, xlator_t *this,
QUOTA_ALLOC_OR_GOTO (delta, int64_t, ret, err);
- *delta = hton64 (ntoh64 (*size) - local->sum);
+ *delta = hton64 (local->sum - ntoh64 (*size));
gf_log (this->name, GF_LOG_DEBUG, "calculated size = %"PRId64", "
"original size = %"PRIu64
@@ -340,7 +340,7 @@ get_child_contribution (call_frame_t *frame,
out:
LOCK (&local->lock);
{
- val = local->dentry_child_count--;
+ val = --local->dentry_child_count;
}
UNLOCK (&local->lock);