Index: dm-bht.c |
diff --git a/dm-bht.c b/dm-bht.c |
index 71e3b04b2acf3161495a8ce8b16d2901cbc71202..dd57e12a0d467c26c3807248db84a290efa3e1b8 100644 |
--- a/dm-bht.c |
+++ b/dm-bht.c |
@@ -105,7 +105,11 @@ static int dm_bht_compute_hash(struct dm_bht *bht, const void *block, |
* offset_into_page + length < page_size |
* For now just check that block is page-aligned. |
*/ |
- BUG_ON(!IS_ALIGNED((uintptr_t)block, PAGE_SIZE)); |
+ /* |
+ * TODO(msb): Re-enable once user-space code is modified to use |
+ * aligned buffers. |
+ * BUG_ON(!IS_ALIGNED((uintptr_t)block, PAGE_SIZE)); |
+ */ |
sg_init_table(&sg, 1); |
sg_set_buf(&sg, block, PAGE_SIZE); |