Btrfs: memset to avoid stale content in btree leaf
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 23 Sep 2016 20:44:44 +0000 (13:44 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2016 17:37:06 +0000 (19:37 +0200)
commit851cd173f06045816528176001cf82948282029c
tree280bf393ed2e9f10130fd8eea3bc08e3c601d083
parent0f5053eb90f58c619885eac2757ccdc5eccd9046
Btrfs: memset to avoid stale content in btree leaf

This is an additional patch to
"Btrfs: memset to avoid stale content in btree node block".

This uses memset to initialize the unused space in a leaf to avoid
potential stale content, which may be incurred by pushing items
between sibling leaves.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/extent_io.c