]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/md/bitmap.c
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / drivers / md / bitmap.c
index 9a8e66ae04f51e95c169ea9a38f48b0d83f6ed03..67f8b31e205491ebea3b02a5a28efedce2c26c8d 100644 (file)
@@ -669,17 +669,13 @@ static inline unsigned long file_page_offset(struct bitmap_storage *store,
 /*
  * return a pointer to the page in the filemap that contains the given bit
  *
- * this lookup is complicated by the fact that the bitmap sb might be exactly
- * 1 page (e.g., x86) or less than 1 page -- so the bitmap might start on page
- * 0 or page 1
  */
 static inline struct page *filemap_get_page(struct bitmap_storage *store,
                                            unsigned long chunk)
 {
        if (file_page_index(store, chunk) >= store->file_pages)
                return NULL;
-       return store->filemap[file_page_index(store, chunk)
-                             - file_page_index(store, 0)];
+       return store->filemap[file_page_index(store, chunk)];
 }
 
 static int bitmap_storage_alloc(struct bitmap_storage *store,