This doesn't compute the block size, it computes the number of block in a block device. I think it would be useful to add a generic helper (e.g. in blkdev.h) as this calculation seems to be open coded in various places. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
- [PATCH] target/iblock: use ilog2 to compute block size Arnd Bergmann
- Re: [PATCH] target/iblock: use ilog2 to compute blo... Christoph Hellwig
- Re: [PATCH] target/iblock: use ilog2 to compute... Arnd Bergmann