diff options
author | David Sterba <dsterba@suse.com> | 2017-06-12 17:29:36 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-19 18:26:03 +0200 |
commit | fa1bcbe0a54c67a293c557a21641565516c96a8f (patch) | |
tree | 1acfdd3535294df2fe7030dda67aebd81148df1a /fs/btrfs/volumes.h | |
parent | 1a63143dc18b2c6a2233d1c5afce95205d2676f4 (diff) | |
download | linux-stable-fa1bcbe0a54c67a293c557a21641565516c96a8f.tar.gz linux-stable-fa1bcbe0a54c67a293c557a21641565516c96a8f.tar.bz2 linux-stable-fa1bcbe0a54c67a293c557a21641565516c96a8f.zip |
btrfs: document mandatory order of bio in btrfs_io_bio
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 58b97b6f5f02..35327efecdbb 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -281,6 +281,10 @@ struct btrfs_io_bio { u8 *csum_allocated; btrfs_io_bio_end_io_t *end_io; struct bvec_iter iter; + /* + * This member must come last, bio_alloc_bioset will allocate enough + * bytes for entire btrfs_io_bio but relies on bio being last. + */ struct bio bio; }; |