From 3e873600920a180960e6730a531ba7a5912f5543 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Sat, 16 Apr 2011 10:03:53 +0000 Subject: features/marker-quota: fixes in self-healing of dirty inode code path. Signed-off-by: Raghavendra G Signed-off-by: Anand Avati BUG: 2649 (Quota: size field is not getting updated properly) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2649 --- xlators/features/marker/src/marker-quota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index cc109fecbc5..9a7bf868d18 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); -- cgit