]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add helper to initialize the non-bio part of btrfs_io_bio
authorDavid Sterba <dsterba@suse.com>
Mon, 12 Jun 2017 15:29:39 +0000 (17:29 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:03 +0000 (18:26 +0200)
commit4fdcd401fe908230d267acb74b2d59f8329492fa
tree211f05d1eaa5497ddc42c6dee814c3df4f7762d5
parent4b7acaf141d1f937a7b6262f958c6a1c31fbba51
btrfs: add helper to initialize the non-bio part of btrfs_io_bio

We use btrfs_bioset for bios and ask to allocate the entire size of
btrfs_io_bio from btrfs bio_alloc_bioset. The member 'bio' is
initialized but the bytes from 0 to offset of 'bio' are left
uninitialized. Although we initialize some of the members in our
helpers, we should initialize the whole structures.

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