projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a63143
)
btrfs: document mandatory order of bio in btrfs_io_bio
author
David Sterba
<dsterba@suse.com>
Mon, 12 Jun 2017 15:29:36 +0000
(17:29 +0200)
committer
David Sterba
<dsterba@suse.com>
Mon, 19 Jun 2017 16:26:03 +0000
(18:26 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.h
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/volumes.h
b/fs/btrfs/volumes.h
index 58b97b6f5f02958bbf2ce574c915ea982f6dbb11..35327efecdbbfb92c1af436134a86125827fd737 100644
(file)
--- 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;
};