md/raid5: ensure sync and DISCARD don't happen at the same time.
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / md / raid5.h
index a9fc24901edad817b599219e9fb4c596c4c9e29b..050a334e89c15789de294312214f6f8878530246 100644 (file)
@@ -298,6 +298,7 @@ enum r5dev_flags {
        R5_WantReplace, /* We need to update the replacement, we have read
                         * data in, and now is a good time to write it out.
                         */
+       R5_Discard,     /* Discard the stripe */
 };
 
 /*
@@ -322,6 +323,7 @@ enum {
        STRIPE_COMPUTE_RUN,
        STRIPE_OPS_REQ_PENDING,
        STRIPE_ON_UNPLUG_LIST,
+       STRIPE_DISCARD,
 };
 
 /*