提交 fa1bcbe0 编写于 作者: D David Sterba

btrfs: document mandatory order of bio in btrfs_io_bio

Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 1a63143d
......@@ -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;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册