md: allow a maximum extent to be set for resyncing
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / raid / md_k.h
index b579cc628303309c0fcb57ae332fd1fe0561805e..c77dca3221ed5891dcb6cae277b8470f487ab5a5 100644 (file)
@@ -219,6 +219,8 @@ struct mddev_s
        atomic_t                        recovery_active; /* blocks scheduled, but not written */
        wait_queue_head_t               recovery_wait;
        sector_t                        recovery_cp;
+       sector_t                        resync_max;     /* resync should pause
+                                                        * when it gets here */
 
        spinlock_t                      write_lock;
        wait_queue_head_t               sb_wait;        /* for waiting on superblock updates */