1. 11 10月, 2011 1 次提交
  2. 25 8月, 2011 1 次提交
  3. 18 6月, 2009 1 次提交
    • N
      md/linear: use call_rcu to free obsolete 'conf' structures. · 495d3573
      NeilBrown 提交于
      Current, when we update the 'conf' structure, when adding a
      drive to a linear array, we keep the old version around until
      the array is finally stopped, as it is not safe to free it
      immediately.
      
      Now that we have rcu protection on all accesses to 'conf',
      we can use call_rcu to free it more promptly.
      Signed-off-by: NNeilBrown <neilb@suse.de>
      495d3573
  4. 16 6月, 2009 3 次提交
  5. 31 3月, 2009 2 次提交
  6. 13 10月, 2008 2 次提交
    • A
      md: Convert remaining 1k representations in linear.c to sectors. · ab5bd5cb
      Andre Noll 提交于
      This patch renames hash_spacing and preshift to  spacing and
      sector_shift respectively with the following change of semantics:
      
      Case 1: (sizeof(sector_t) <= sizeof(u32)).
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      In this case, we have sector_shift = preshift = 0 and spacing =
      2 * hash_spacing.
      
      Hence, the index for the hash table which is computed by the new code
      in which_dev() as sector / spacing equals the old value which was
      (sector/2) / hash_spacing.
      
      Note also that the value of nb_zone stays the same because both sz
      and base double.
      
      Case 2: (sizeof(sector_t) > sizeof(u32)).
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      (aka the shifting dance case). Here we have sector_shift = preshift +
      1 and
      
      spacing = 2 * hash_spacing
      
      during the computation of nb_zone and curr_sector, but
      
      spacing = hash_spacing
      
      in which_dev() because in the last hunk of the patch for linear.c we
      shift down conf->spacing (= 2 * hash_spacing) by one more bit than
      in the old code.
      
      Hence in the computation of nb_zone, sz and base have the same value
      as before, so nb_zone is not affected. Also curr_sector in the next
      hunk stays the same.
      
      In which_dev() the hash table index is computed as
      
      (sector >> sector_shift) / spacing
      
      In view of sector_shift = preshift + 1 and spacing = hash_spacing,
      this equals
      
      ((sector/2) >> preshift) / hash_spacing
      
      which is the value computed by the old code.
      Signed-off-by: NAndre Noll <maan@systemlinux.org>
      Signed-off-by: NNeilBrown <neilb@suse.de>
      ab5bd5cb
    • A
      md: linear: Represent dev_info->size and dev_info->offset in sectors. · 6283815d
      Andre Noll 提交于
      Rename them to num_sectors and start_sector which is more descriptive.
      Signed-off-by: NAndre Noll <maan@systemlinux.org>
      Signed-off-by: NNeilBrown <neilb@suse.de>
      6283815d
  7. 21 7月, 2008 1 次提交
  8. 27 6月, 2006 1 次提交
  9. 10 9月, 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