From 3b5195cfa4976e1d83646b70b0f08f583a7a1094 Mon Sep 17 00:00:00 2001 From: Junaid Date: Thu, 31 Mar 2011 04:28:43 +0000 Subject: features/quota: Use appropriate inodes while logging and create contexts in inode for files. - It also fixes limit checks if limit set in the directory. Signed-off-by: Junaid Signed-off-by: Vijay Bellur BUG: 2604 (Quota: crossing the set limit) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2604 --- xlators/features/quota/src/quota.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'xlators/features/quota/src/quota.h') diff --git a/xlators/features/quota/src/quota.h b/xlators/features/quota/src/quota.h index 1f0546d4..d53894ab 100644 --- a/xlators/features/quota/src/quota.h +++ b/xlators/features/quota/src/quota.h @@ -107,13 +107,6 @@ _vol_name, _gfid_unparsed); \ } while (0) -#define GET_SIZE_KEY_OR_GOTO(var, _vol_name, label) \ - do { \ - ret = gf_asprintf (var, QUOTA_XATTR_PREFIX \ - "%s." SIZE, _vol_name); \ - if (ret == -1) \ - goto label; \ - } while (0) #define GET_CONTRI_KEY_OR_GOTO(var, _vol_name, _gfid, label) \ do { \ @@ -167,7 +160,6 @@ struct quota_local { typedef struct quota_local quota_local_t; struct quota_priv { - char *size_key; int64_t timeout; struct list_head limit_head; }; -- cgit