Commit 4208c562 authored by Kanchan Joshi's avatar Kanchan Joshi Committed by Jens Axboe

block: remove bogus union

The union around bi_integrity field is pointless.
Remove it.
Signed-off-by: default avatarKanchan Joshi <joshi.k@samsung.com>
Link: https://lore.kernel.org/r/20240917045457.429698-1-joshi.k@samsung.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent aa3d8a36
...@@ -248,11 +248,9 @@ struct bio { ...@@ -248,11 +248,9 @@ struct bio {
struct bio_crypt_ctx *bi_crypt_context; struct bio_crypt_ctx *bi_crypt_context;
#endif #endif
union {
#if defined(CONFIG_BLK_DEV_INTEGRITY) #if defined(CONFIG_BLK_DEV_INTEGRITY)
struct bio_integrity_payload *bi_integrity; /* data integrity */ struct bio_integrity_payload *bi_integrity; /* data integrity */
#endif #endif
};
unsigned short bi_vcnt; /* how many bio_vec's */ unsigned short bi_vcnt; /* how many bio_vec's */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment