]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3fa34744ca5268485f6d5acfa31db715947fe6c
tree33ce221bd3be09a834f7bfeee1a8d38e399510cd
parent0f168a3526237c2c2215a8f515246b6ab69b4cdd
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