mfrw / compcache

Automatically exported from code.google.com/p/compcache
0 stars 0 forks source link

Compile error with pre-2.6.31 #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
blk_queue_hardsect_size is renamed to blk_queue_logical_block_size in
patches for 2.6.31.

Original issue reported on code.google.com by andrej.g...@googlemail.com on 21 Jun 2009 at 7:13

GoogleCodeExporter commented 9 years ago
Thanks for the info, andrej.

The change is committed to default branch. It will still give compile error till
2.6.31-rc1 is released since:

#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)
        blk_queue_logical_block_size(rzs.disk->queue, PAGE_SIZE);
#else
        blk_queue_hardsect_size(rzs.disk->queue, PAGE_SIZE);
#endif

Original comment by nitingupta910@gmail.com on 22 Jun 2009 at 4:13