ocfs2: Zero out padding of on disk dquot structure
authorJan Kara <jack@suse.cz>
Wed, 22 Jul 2009 11:17:18 +0000 (13:17 +0200)
committerJoel Becker <joel.becker@oracle.com>
Thu, 23 Jul 2009 17:59:17 +0000 (10:59 -0700)
Padding fields of on-disk dquot structure were not zeroed. Zero them
so that it's easier to use them later.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/quota_global.c

index a66cb82fd6e60af31525ae449b5af56b98cd078c..7248db681351175ba12f226aa9dfcc51ad42f2b4 100644 (file)
@@ -69,6 +69,7 @@ static void ocfs2_global_mem2diskdqb(void *dp, struct dquot *dquot)
        d->dqb_curspace = cpu_to_le64(m->dqb_curspace);
        d->dqb_btime = cpu_to_le64(m->dqb_btime);
        d->dqb_itime = cpu_to_le64(m->dqb_itime);
+       d->dqb_pad1 = d->dqb_pad2 = 0;
 }
 
 static int ocfs2_global_is_id(void *dp, struct dquot *dquot)