| 1 |
#include <linux/bio.h> |
| 2 |
|
| 3 |
/* |
| 4 |
* Handle the following kernel commit: |
| 5 |
* |
| 6 |
* commit 1eff9d322a444245c67515edb52bc0eb68374aa8 |
| 7 |
* Author: Jens Axboe <[email protected]> |
| 8 |
* Date: Fri Aug 5 15:35:16 2016 -0600 |
| 9 |
* |
| 10 |
* block: rename bio bi_rw to bi_opf |
| 11 |
* |
| 12 |
* Since commit 63a4cc24867d, bio->bi_rw contains flags in the lower |
| 13 |
* portion and the op code in the higher portions. This means that |
| 14 |
* old code that relies on manually setting bi_rw is most likely |
| 15 |
* going to be broken. Instead of letting that brokeness linger, |
| 16 |
* rename the member, to force old and out-of-tree code to break |
| 17 |
* at compile time instead of at runtime. |
| 18 |
* |
| 19 |
* No intended functional changes in this commit. |
| 20 |
*/ |
| 21 |
|
| 22 |
void bar (void); |
| 23 |
|
| 24 |
void bar (void) |
| 25 |
{ |
| 26 |
struct bio foo; |
| 27 |
foo.bi_opf = 0; |
| 28 |
(void) foo; |
| 29 |
} |