md: override md superblock recovery_offset for journal device
[firefly-linux-kernel-4.4.55.git] / drivers / md / md.h
index 88dc6312f5d5307a2f3057da3ecfe6fb5eb8056b..2b0f62fb61463edce7e6a559286ed662c8996578 100644 (file)
@@ -87,10 +87,16 @@ struct md_rdev {
                                         * array and could again if we did a partial
                                         * resync from the bitmap
                                         */
-       sector_t        recovery_offset;/* If this device has been partially
+       union {
+               sector_t recovery_offset;/* If this device has been partially
                                         * recovered, this is where we were
                                         * up to.
                                         */
+               sector_t journal_tail;  /* If this device is a journal device,
+                                        * this is the journal tail (journal
+                                        * recovery start point)
+                                        */
+       };
 
        atomic_t        nr_pending;     /* number of pending requests.
                                         * only maintained for arrays that