[PATCH] patch to init di_payload_format field in gfs2_dinode
authorAbhijith Das <adas@redhat.com>
Mon, 10 Jul 2006 17:36:12 +0000 (12:36 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 11 Jul 2006 13:54:17 +0000 (09:54 -0400)
A missing initialisation when creating a new on disk inode.

Signed-off-by: Abhijith Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/inode.c

index 22ca3b5..e76f345 100644 (file)
@@ -696,6 +696,7 @@ static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl,
        }
 
        di->__pad1 = 0;
+       di->di_payload_format = cpu_to_be32(0);
        di->di_height = cpu_to_be32(0);
        di->__pad2 = 0;
        di->__pad3 = 0;