md.h (11e4afb49b7fa1fc8e1ffd850c1806dd86a08204) md.h (7b6d91daee5cac6402186ff224c3af39d79f4a0e)
1/*
2 md_k.h : kernel internal structure of the Linux MD driver
3 Copyright (C) 1996-98 Ingo Molnar, Gadi Oxman
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.

--- 53 unchanged lines hidden (view full) ---

62 * It can never have faulty==1, in_sync==1
63 * This reduces the burden of testing multiple flags in many cases
64 */
65
66 unsigned long flags;
67#define Faulty 1 /* device is known to have a fault */
68#define In_sync 2 /* device is in_sync with rest of array */
69#define WriteMostly 4 /* Avoid reading if at all possible */
1/*
2 md_k.h : kernel internal structure of the Linux MD driver
3 Copyright (C) 1996-98 Ingo Molnar, Gadi Oxman
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.

--- 53 unchanged lines hidden (view full) ---

62 * It can never have faulty==1, in_sync==1
63 * This reduces the burden of testing multiple flags in many cases
64 */
65
66 unsigned long flags;
67#define Faulty 1 /* device is known to have a fault */
68#define In_sync 2 /* device is in_sync with rest of array */
69#define WriteMostly 4 /* Avoid reading if at all possible */
70#define BarriersNotsupp 5 /* BIO_RW_BARRIER is not supported */
70#define BarriersNotsupp 5 /* REQ_HARDBARRIER is not supported */
71#define AllReserved 6 /* If whole device is reserved for
72 * one array */
73#define AutoDetected 7 /* added by auto-detect */
74#define Blocked 8 /* An error occured on an externally
75 * managed array, don't allow writes
76 * until it is cleared */
77 wait_queue_head_t blocked_wait;
78

--- 170 unchanged lines hidden (view full) ---

249 int degraded; /* whether md should consider
250 * adding a spare
251 */
252 int barriers_work; /* initialised to true, cleared as soon
253 * as a barrier request to slave
254 * fails. Only supported
255 */
256 struct bio *biolist; /* bios that need to be retried
71#define AllReserved 6 /* If whole device is reserved for
72 * one array */
73#define AutoDetected 7 /* added by auto-detect */
74#define Blocked 8 /* An error occured on an externally
75 * managed array, don't allow writes
76 * until it is cleared */
77 wait_queue_head_t blocked_wait;
78

--- 170 unchanged lines hidden (view full) ---

249 int degraded; /* whether md should consider
250 * adding a spare
251 */
252 int barriers_work; /* initialised to true, cleared as soon
253 * as a barrier request to slave
254 * fails. Only supported
255 */
256 struct bio *biolist; /* bios that need to be retried
257 * because BIO_RW_BARRIER is not supported
257 * because REQ_HARDBARRIER is not supported
258 */
259
260 atomic_t recovery_active; /* blocks scheduled, but not written */
261 wait_queue_head_t recovery_wait;
262 sector_t recovery_cp;
263 sector_t resync_min; /* user requested sync
264 * starts here */
265 sector_t resync_max; /* resync should pause

--- 213 unchanged lines hidden ---
258 */
259
260 atomic_t recovery_active; /* blocks scheduled, but not written */
261 wait_queue_head_t recovery_wait;
262 sector_t recovery_cp;
263 sector_t resync_min; /* user requested sync
264 * starts here */
265 sector_t resync_max; /* resync should pause

--- 213 unchanged lines hidden ---