瀏覽代碼

[PATCH] patch to init di_payload_format field in gfs2_dinode

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>
Abhijith Das 19 年之前
父節點
當前提交
b2a580d87b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/gfs2/inode.c

+ 1 - 0
fs/gfs2/inode.c

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