[PATCH] libquota: fix get_dq()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
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@xxxxxxxxxxxxx>
---
 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



--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux