diff options
author | shli@kernel.org <shli@kernel.org> | 2014-12-15 02:57:03 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-04-22 00:00:41 +0200 |
commit | 7a87f43405e91ca12b8770eb689dd9886f217091 (patch) | |
tree | 144c8e5d5a1c4afcef0a7a6f3d5d6c5d1bfceaac /drivers/md/raid5.h | |
parent | raid5: add a new flag to track if a stripe can be batched (diff) | |
download | linux-7a87f43405e91ca12b8770eb689dd9886f217091.tar.xz linux-7a87f43405e91ca12b8770eb689dd9886f217091.zip |
raid5: track overwrite disk count
Track overwrite disk count, so we can know if a stripe is a full stripe write.
Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r-- | drivers/md/raid5.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h index 37644e3d5293..4cc1a48127c7 100644 --- a/drivers/md/raid5.h +++ b/drivers/md/raid5.h @@ -210,6 +210,10 @@ struct stripe_head { atomic_t count; /* nr of active thread/requests */ int bm_seq; /* sequence number for bitmap flushes */ int disks; /* disks in stripe */ + int overwrite_disks; /* total overwrite disks in stripe, + * this is only checked when stripe + * has STRIPE_BATCH_READY + */ enum check_states check_state; enum reconstruct_states reconstruct_state; spinlock_t stripe_lock; |