libquota: fix get_dq()
PATCH 1/1 libquota: fix get_dq()
Hi, Aditya
This one more fix based on your new quota patches.
Quoted 1 line
From
f3f4de997890a0c50d7c8143d9046dcab93cda5dMon 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.
Signed-off-by Niu Yawei <[email protected]>
--- lib/quota/mkquota.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
lib/quota/mkquota.c +1 -0
@@ -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
Ted Ts'o
AppliedQuoted 4 lines · Niu
Hi, Aditya
This one more fix based on your new quota patches.
Quoted 8 lines
From
f3f4de997890a0c50d7c8143d9046dcab93cda5dMon Sep 17 00:00:00 2001
From: Niu Yawei <[email protected]>
Date: Fri, 11 Nov 2011 01:11:59 +0800
Subject: [PATCH] libquota: fixget_dq()The
dq_idshould be set on newly created dqout.Signed-off-by Niu Yawei <[email protected]>
Applied, thanks.
- Ted