| Submitter | Kevin Wolf |
|---|---|
| Date | June 22, 2010, 2:09 p.m. |
| Message ID | <1277215773-27357-4-git-send-email-kwolf@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/56508/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/block_int.h b/block_int.h index e3bfd19..b64a009 100644 --- a/block_int.h +++ b/block_int.h @@ -224,7 +224,9 @@ static inline unsigned int get_physical_block_exp(BlockConf *conf) { unsigned int exp = 0, size; - for (size = conf->physical_block_size; size > 512; size >>= 1) { + for (size = conf->physical_block_size; + size > conf->logical_block_size; + size >>= 1) { exp++; }