1. 19 Dec, 2008 1 commit
    • NeilBrown's avatar
      md: Don't read past end of bitmap when reading bitmap. · a2ed9615
      NeilBrown authored
      When we read the write-intent-bitmap off the device, we currently
      read a whole number of pages.
      When PAGE_SIZE is 4K, this works due to the alignment we enforce
      on the superblock and bitmap.
      When PAGE_SIZE is 64K, this case read past the end-of-device
      which causes an error.
      
      When we write the superblock, we ensure to clip the last page
      to just be the required size.  Copy that code into the read path
      to just read the required number of sectors.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Cc: stable@kernel.org
      a2ed9615
  2. 17 Dec, 2008 27 commits
  3. 16 Dec, 2008 12 commits