Whamcloud - gitweb
b=21500 2.6.31-fc12 patchless client support.
[fs/lustre-release.git] / lustre / include / linux / lustre_compat25.h
index 78ca298..468ce53 100644 (file)
@@ -654,5 +654,9 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount)
 #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 */