* [PATCH] libquota: fix get_dq()
@ 2011-11-11 5:22 Niu
2011-11-14 16:56 ` Ted Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Niu @ 2011-11-11 5:22 UTC (permalink / raw)
To: adityakali; +Cc: linux-ext4
Hi, Aditya
This one more fix based on your new quota patches.
>From f3f4de997890a0c50d7c8143d9046dcab93cda5d Mon Sep 17 00:00:00 2001
From: Niu Yawei <niu@whamcloud.com>
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 <niu@whamcloud.com>
---
lib/quota/mkquota.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/quota/mkquota.c b/lib/quota/mkquota.c
index 832b135..ac7288c 100644
--- a/lib/quota/mkquota.c
+++ b/lib/quota/mkquota.c
@@ -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;
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libquota: fix get_dq()
2011-11-11 5:22 [PATCH] libquota: fix get_dq() Niu
@ 2011-11-14 16:56 ` Ted Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2011-11-14 16:56 UTC (permalink / raw)
To: Niu; +Cc: adityakali, linux-ext4
On Fri, Nov 11, 2011 at 01:22:34PM +0800, Niu wrote:
> Hi, Aditya
>
> This one more fix based on your new quota patches.
>
> From f3f4de997890a0c50d7c8143d9046dcab93cda5d Mon Sep 17 00:00:00 2001
> From: Niu Yawei <niu@whamcloud.com>
> 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 <niu@whamcloud.com>
Applied, thanks.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-14 16:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-11 5:22 [PATCH] libquota: fix get_dq() Niu
2011-11-14 16:56 ` Ted Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).