android_kernel_xiaomi_sm8350/include/linux/raid
NeilBrown 4254376914 [PATCH] md: Don't write dirty/clean update to spares - leave them alone
- record the 'event' count on each individual device (they
  might sometimes be slightly different now)
- add a new value for 'sb_dirty': '3' means that the super
  block only needs to be updated to record a clean<->dirty
  transition.
- Prefer odd event numbers for dirty states and even numbers
  for clean states
- Using all the above, don't update the superblock on
  a spare device if the update is just doing a clean-dirty
  transition.  To accomodate this, a transition from
  dirty back to clean might now decrement the events counter
  if nothing else has changed.

The net effect of this is that spare drives will not see any IO requests
during normal running of the array, so they can go to sleep if that is what
they want to do.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-26 09:58:39 -07:00
..
bitmap.h [PATCH] md/bitmap: change md/bitmap file handling to use bmap to file blocks 2006-06-26 09:58:38 -07:00
linear.h [PATCH] md: allow a linear array to have drives added while active 2006-06-26 09:58:37 -07:00
md_k.h [PATCH] md: Don't write dirty/clean update to spares - leave them alone 2006-06-26 09:58:39 -07:00
md_p.h [PATCH] md: allow checkpoint of recovery with version-1 superblock 2006-06-26 09:58:37 -07:00
md_u.h
md.h [PATCH] md: make md_print_devices() static 2006-06-26 09:58:37 -07:00
multipath.h
raid0.h
raid1.h
raid5.h [PATCH] md: merge raid5 and raid6 code 2006-06-26 09:58:37 -07:00
raid10.h [PATCH] md: support stripe/offset mode in raid10 2006-06-26 09:58:37 -07:00
xor.h