Re: [PATCH] Btrfs: memset to avoid stale content in btree leaf

2016-09-26 Thread Liu Bo
On Mon, Sep 26, 2016 at 06:54:44PM +0200, David Sterba wrote: > On Fri, Sep 23, 2016 at 01:44:44PM -0700, Liu Bo wrote: > > @@ -3732,15 +3734,21 @@ static noinline_for_stack int write_one_eb(struct > > extent_buffer *eb, > > if (btrfs_header_owner(eb) == BTRFS_TREE_LOG_OBJECTID) > >

Re: [PATCH] Btrfs: memset to avoid stale content in btree leaf

2016-09-26 Thread David Sterba
On Fri, Sep 23, 2016 at 01:44:44PM -0700, Liu Bo wrote: > @@ -3732,15 +3734,21 @@ static noinline_for_stack int write_one_eb(struct > extent_buffer *eb, > if (btrfs_header_owner(eb) == BTRFS_TREE_LOG_OBJECTID) > bio_flags = EXTENT_BIO_TREE_LOG; > > - /* set btree node bey

[PATCH] Btrfs: memset to avoid stale content in btree leaf

2016-09-23 Thread Liu Bo
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 --- Tested with fstests '-g