summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.h
diff options
context:
space:
mode:
authorMariusz Dabrowski <mariusz.dabrowski@intel.com>2018-04-19 19:28:10 +0200
committerShaohua Li <shli@fb.com>2018-05-17 18:55:58 +0200
commit2cd259a77de561d49c1ff939a239095749e65ee7 (patch)
tree3fb372748632aec21432406e063f21e5c7e4cca3 /drivers/md/raid5.h
parentmd: fix two problems with setting the "re-add" device state. (diff)
downloadlinux-2cd259a77de561d49c1ff939a239095749e65ee7.tar.xz
linux-2cd259a77de561d49c1ff939a239095749e65ee7.zip
raid5: copy write hint from origin bio to stripe
Store write hint from original bio in stripe head so it can be assigned to bio sent to each RAID device. Signed-off-by: Mariusz Dabrowski <mariusz.dabrowski@intel.com> Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r--drivers/md/raid5.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h
index 3f8da26032ac..aea2447b0ea7 100644
--- a/drivers/md/raid5.h
+++ b/drivers/md/raid5.h
@@ -257,6 +257,7 @@ struct stripe_head {
sector_t sector; /* sector of this page */
unsigned long flags;
u32 log_checksum;
+ unsigned short write_hint;
} dev[1]; /* allocated with extra space depending of RAID geometry */
};