diff options
author | Niu Yawei <niu@whamcloud.com> | 2011-11-14 11:36:12 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-11-14 11:36:12 -0500 |
commit | 1527d99d378a4a45f1e36b197bed628ce28d73ee (patch) | |
tree | d95f02d8fd342beb588ad9373737de04eeac19b7 | |
parent | 7bed9a78828e56ddb687cf2b5f1d6ec1f5e5ecc6 (diff) | |
download | e2fsprogs-1527d99d378a4a45f1e36b197bed628ce28d73ee.tar.gz |
libquota: fix get_dq()
The dq_id should be set on newly created dqout.
Signed-off-by: Niu Yawei <niu@whamcloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | 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 832b135e..ac7288ca 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; } |