diff options
| author | Greg KH <gregkh@suse.de> | 2005-09-12 15:10:59 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-12 15:10:59 -0400 |
| commit | ad2c10f8f00d3fe2e37dd8a107e7cf4ac0459489 (patch) | |
| tree | 5571f6a5784f51efddf9c1ee0408894cd63a460f /include/linux/raid/raid1.h | |
| parent | 6b7839007098a6b5612d31690e11277d4242e6ae (diff) | |
| parent | 2ade81473636b33aaac64495f89a7dc572c529f0 (diff) | |
Merge ../torvalds-2.6/
Diffstat (limited to 'include/linux/raid/raid1.h')
| -rw-r--r-- | include/linux/raid/raid1.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/raid/raid1.h b/include/linux/raid/raid1.h index 9d93cf12e890..60e19b667548 100644 --- a/include/linux/raid/raid1.h +++ b/include/linux/raid/raid1.h | |||
| @@ -80,6 +80,9 @@ struct r1bio_s { | |||
| 80 | atomic_t remaining; /* 'have we finished' count, | 80 | atomic_t remaining; /* 'have we finished' count, |
| 81 | * used from IRQ handlers | 81 | * used from IRQ handlers |
| 82 | */ | 82 | */ |
| 83 | atomic_t behind_remaining; /* number of write-behind ios remaining | ||
| 84 | * in this BehindIO request | ||
| 85 | */ | ||
| 83 | sector_t sector; | 86 | sector_t sector; |
| 84 | int sectors; | 87 | int sectors; |
| 85 | unsigned long state; | 88 | unsigned long state; |
| @@ -107,4 +110,14 @@ struct r1bio_s { | |||
| 107 | #define R1BIO_Uptodate 0 | 110 | #define R1BIO_Uptodate 0 |
| 108 | #define R1BIO_IsSync 1 | 111 | #define R1BIO_IsSync 1 |
| 109 | #define R1BIO_Degraded 2 | 112 | #define R1BIO_Degraded 2 |
| 113 | #define R1BIO_BehindIO 3 | ||
| 114 | /* For write-behind requests, we call bi_end_io when | ||
| 115 | * the last non-write-behind device completes, providing | ||
| 116 | * any write was successful. Otherwise we call when | ||
| 117 | * any write-behind write succeeds, otherwise we call | ||
| 118 | * with failure when last write completes (and all failed). | ||
| 119 | * Record that bi_end_io was called with this flag... | ||
| 120 | */ | ||
| 121 | #define R1BIO_Returned 4 | ||
| 122 | |||
| 110 | #endif | 123 | #endif |
