]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: clarify btrfs_lookup_bio_sums documentation
authorOmar Sandoval <osandov@fb.com>
Thu, 16 Apr 2020 21:46:16 +0000 (14:46 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:25 +0000 (11:25 +0200)
commit0cb4f325c80368545ce20d8bc4d64154d7838307
tree163e2784f9e69c0032d9f45e11b28fe7a58f27ed
parente9002caf4a610b521f567e44ae7169aa852f0c01
btrfs: clarify btrfs_lookup_bio_sums documentation

Fix a couple of issues in the btrfs_lookup_bio_sums documentation:

* The bio doesn't need to be a btrfs_io_bio if dst was provided. Move
  the declaration in the code to make that clear, too.
* dst must be large enough to hold nblocks * csum_size, not just
  csum_size.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file-item.c