Btrfs: zero unused bytes in inode item
authorLi Zefan <lizefan@huawei.com>
Tue, 10 Jul 2012 06:58:58 +0000 (00:58 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:28:05 +0000 (16:28 -0400)
commit293f7e07405a63975cee4e95a2cfa0c17b34b3aa
tree33ce221bd3be09a834f7bfeee1a8d38e399510cd
parentb4d7c3c9456a311a45bc1ef8944b5ba5b176244f
Btrfs: zero unused bytes in inode item

The otime field is not zeroed, so users will see random otime in an old
filesystem with a new kernel which has otime support in the future.

The reserved bytes are also not zeroed, and we'll have compatibility
issue if we make use of those bytes.

Signed-off-by: Li Zefan <lizefan@huawei.com>
fs/btrfs/delayed-inode.c
fs/btrfs/inode.c