diff options
-rw-r--r-- | xlators/features/quota/src/quota.c | 7 | ||||
-rw-r--r-- | xlators/features/quota/src/quota.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 0f335283..5f7c67ce 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -605,9 +605,8 @@ quota_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, quota_inode_ctx_t *ctx = NULL; quota_dentry_t *dentry = NULL; uint64_t value = 0; - int64_t *size = NULL; - quota_limit_t *limit = NULL; - int64_t hard_lim = -1, soft_lim_percent = -1, *ptr = NULL; + quota_limit_t *limit = NULL, *ptr = NULL; + int64_t hard_lim = -1, soft_lim_percent = -1; quota_local_t *local = NULL; if (op_ret < 0) @@ -634,7 +633,7 @@ quota_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, goto unwind; } - ret = quota_inode_ctx_get (inode, hard_lim, soft_lim, + ret = quota_inode_ctx_get (inode, hard_lim, soft_lim_percent, this, dict, buf, &ctx, 1); if ((ret == -1) || (ctx == NULL)) { gf_log (this->name, GF_LOG_WARNING, "cannot create quota " diff --git a/xlators/features/quota/src/quota.h b/xlators/features/quota/src/quota.h index c4d5c6ad..3a7a47f2 100644 --- a/xlators/features/quota/src/quota.h +++ b/xlators/features/quota/src/quota.h @@ -187,7 +187,7 @@ typedef struct quota_priv quota_priv_t; typedef struct quota_limit { int64_t hard_lim; int64_t soft_lim_percent; -} quota_limit_t __attribute__ ((packed)); +} __attribute__ ((packed)) quota_limit_t ; int quota_enforcer_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc, |