#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
#endif /* !atomic_inc_not_zero */
+#ifndef HAVE_BLK_QUEUE_LOG_BLK_SIZE /* added in 2.6.31 */
+#define blk_queue_logical_block_size(q, sz) blk_queue_hardsect_size(q, sz)
+#endif
+
#endif /* __KERNEL__ */
#endif /* _COMPAT25_H */