]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/dquot.c
[PATCH] fix umask when noACL kernel meets extN tuned for ACLs
[linux-2.6-omap-h63xx.git] / fs / dquot.c
index 0952cc474d9a57e08b495315200a73d9c93889e7..a561fb29e2037e9f238b269404b14da50fc087bd 100644 (file)
@@ -600,11 +600,10 @@ static struct dquot *get_empty_dquot(struct super_block *sb, int type)
 {
        struct dquot *dquot;
 
-       dquot = kmem_cache_alloc(dquot_cachep, GFP_NOFS);
+       dquot = kmem_cache_zalloc(dquot_cachep, GFP_NOFS);
        if(!dquot)
                return NODQUOT;
 
-       memset((caddr_t)dquot, 0, sizeof(struct dquot));
        mutex_init(&dquot->dq_lock);
        INIT_LIST_HEAD(&dquot->dq_free);
        INIT_LIST_HEAD(&dquot->dq_inuse);