Skip to contentSkip to conversation

libquota: fix get_dq()

PATCH Applied Niu 2 participants 2 messages Nov 11, 2011 – Nov 14, 2011

lore
Share & tools
lore

Niu

author
#0 lore raw

PATCH 1/1 libquota: fix get_dq()

Hi, Aditya

This one more fix based on your new quota patches.

Quoted 1 line

From f3f4de997890a0c50d7c8143d9046dcab93cda5d Mon Sep 17 00:00:00 2001

From: Niu Yawei <[email protected]>
Date: Fri, 11 Nov 2011 01:11:59 +0800
Subject: [PATCH] libquota: fix get_dq()

The dq_id should be set on newly created dqout.

---
 lib/quota/mkquota.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
lib/quota/mkquota.c +1 -0
index 832b135..ac7288c 100644
@@ -292,6 +292,7 @@ static struct dquot *get_dq(dict_t *dict, __u32 key)
 		}
 		memset(dq, 0, sizeof(struct dquot));
 		dict_alloc_insert(dict, UINT_TO_VOIDPTR(key), dq);
+		dq->dq_id = key;
 	}
 	return dq;
 }
Signature · 1 line
1.7.1
Applied
#1 lore raw
Quoted 4 lines · Niu

Hi, Aditya

This one more fix based on your new quota patches.

Quoted 8 lines

From f3f4de997890a0c50d7c8143d9046dcab93cda5d Mon Sep 17 00:00:00 2001
From: Niu Yawei <[email protected]>
Date: Fri, 11 Nov 2011 01:11:59 +0800
Subject: [PATCH] libquota: fix get_dq()

The dq_id should be set on newly created dqout.

Applied, thanks.

- Ted