1. 01 6月, 2012 5 次提交
  2. 22 5月, 2012 1 次提交
  3. 19 5月, 2012 2 次提交
  4. 17 5月, 2012 15 次提交
  5. 15 5月, 2012 4 次提交
  6. 08 5月, 2012 10 次提交
  7. 22 3月, 2012 3 次提交
    • A
      libceph: isolate kmap() call in write_partial_msg_pages() · 8d63e318
      Alex Elder 提交于
      In write_partial_msg_pages(), every case now does an identical call
      to kmap(page).  Instead, just call it once inside the CRC-computing
      block where it's needed.  Move the definition of kaddr inside that
      block, and make it a (char *) to ensure portable pointer arithmetic.
      
      We still don't kunmap() it until after the sendpage() call, in case
      that also ends up needing to use the mapping.
      Signed-off-by: NAlex Elder <elder@dreamhost.com>
      Reviewed-by: NSage Weil <sage@newdream.net>
      8d63e318
    • A
      libceph: rename "page_shift" variable to something sensible · 9bd19663
      Alex Elder 提交于
      In write_partial_msg_pages() there is a local variable used to
      track the starting offset within a bio segment to use.  Its name,
      "page_shift" defies the Linux convention of using that name for
      log-base-2(page size).
      
      Since it's only used in the bio case rename it "bio_offset".  Use it
      along with the page_pos field to compute the memory offset when
      computing CRC's in that function.  This makes the bio case match the
      others more closely.
      Signed-off-by: NAlex Elder <elder@dreamhost.com>
      Reviewed-by: NSage Weil <sage@newdream.net>
      9bd19663
    • A
      libceph: get rid of zero_page_address · 0cdf9e60
      Alex Elder 提交于
      There's not a lot of benefit to zero_page_address, which basically
      holds a mapping of the zero page through the life of the messenger
      module.  Even with our own mapping, the sendpage interface where
      it's used may need to kmap() it again.  It's almost certain to
      be in low memory anyway.
      
      So stop treating the zero page specially in write_partial_msg_pages()
      and just get rid of zero_page_address entirely.
      Signed-off-by: NAlex Elder <elder@dreamhost.com>
      Reviewed-by: NSage Weil <sage@newdream.net>
      0cdf9e60