From f248b10786c50892d31eba11f97eb3433daedb2d Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Tue, 8 Sep 2015 21:16:50 +0800 Subject: btrfs-progs: Avoid uninitialized data in output of btrfs-convert The sequence, transid and reserved fields of inode were writen to disk with uninitizlized value, this patch fixes it. Signed-off-by: Zhao Lei Signed-off-by: David Sterba --- ctree.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ctree.h') diff --git a/ctree.h b/ctree.h index 2061e1e..c57f9ca 100644 --- a/ctree.h +++ b/ctree.h @@ -1424,6 +1424,8 @@ BTRFS_SETGET_STACK_FUNCS(stack_inode_generation, struct btrfs_inode_item, generation, 64); BTRFS_SETGET_STACK_FUNCS(stack_inode_sequence, struct btrfs_inode_item, sequence, 64); +BTRFS_SETGET_STACK_FUNCS(stack_inode_transid, + struct btrfs_inode_item, transid, 64); BTRFS_SETGET_STACK_FUNCS(stack_inode_size, struct btrfs_inode_item, size, 64); BTRFS_SETGET_STACK_FUNCS(stack_inode_nbytes, -- cgit v1.2.1