mtd: keep original flags for every struct mtd_info
[sfrench/cifs-2.6.git] / include / linux / mtd / mtd.h
index 035d641e8847cea56cf39f34a92296feffefe5ae..ba8fa9072aca404314bf59ffded5acf7bf6b745d 100644 (file)
@@ -207,6 +207,7 @@ struct mtd_debug_info {
 struct mtd_info {
        u_char type;
        uint32_t flags;
+       uint32_t orig_flags; /* Flags as before running mtd checks */
        uint64_t size;   // Total size of the MTD
 
        /* "Major" erase size for the device. Naïve users may take this