1. 07 1月, 2006 2 次提交
    • N
      [PATCH] md: remove personality numbering from md · 2604b703
      NeilBrown 提交于
      md supports multiple different RAID level, each being implemented by a
      'personality' (which is often in a separate module).
      
      These personalities have fairly artificial 'numbers'.  The numbers
      are use to:
       1- provide an index into an array where the various personalities
          are recorded
       2- identify the module (via an alias) which implements are particular
          personality.
      
      Neither of these uses really justify the existence of personality numbers.
      The array can be replaced by a linked list which is searched (array lookup
      only happens very rarely).  Module identification can be done using an alias
      based on level rather than 'personality' number.
      
      The current 'raid5' modules support two level (4 and 5) but only one
      personality.  This slight awkwardness (which was handled in the mapping from
      level to personality) can be better handled by allowing raid5 to register 2
      personalities.
      
      With this change in place, the core md module does not need to have an
      exhaustive list of all possible personalities, so other personalities can be
      added independently.
      
      This patch also moves the check for chunksize being non-zero into the ->run
      routines for the personalities that need it, rather than having it in core-md.
       This has a side effect of allowing 'faulty' and 'linear' not to have a
      chunk-size set.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      2604b703
    • N
      [PATCH] md: convert md to use kzalloc throughout · 9ffae0cf
      NeilBrown 提交于
      Replace multiple kmalloc/memset pairs with kzalloc calls.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9ffae0cf
  2. 09 11月, 2005 2 次提交
  3. 01 11月, 2005 1 次提交
    • J
      [BLOCK] Unify the seperate read/write io stat fields into arrays · a362357b
      Jens Axboe 提交于
      Instead of having ->read_sectors and ->write_sectors, combine the two
      into ->sectors[2] and similar for the other fields. This saves a branch
      several places in the io path, since we don't have to care for what the
      actual io direction is. On my x86-64 box, that's 200 bytes less text in
      just the core (not counting the various drivers).
      Signed-off-by: NJens Axboe <axboe@suse.de>
      a362357b
  4. 09 10月, 2005 1 次提交
  5. 10 9月, 2005 1 次提交
  6. 22 6月, 2005 1 次提交
  7. 17 5月, 2005 1 次提交
  8. 06 5月, 2005 1 次提交
  9. 01 5月, 2005 1 次提交
  10. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4