1 #ifndef _CCACHE_COMPAT_H_
2 #define _CCACHE_COMPAT_H_
4 #include <linux/version.h>
6 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,23)
7 #define BIO_IO_ERROR(bio) bio_io_error(bio, PAGE_SIZE)
8 #define BIO_ENDIO(bio, error) bio_endio(bio, PAGE_SIZE, error)
10 #define BIO_IO_ERROR(bio) bio_io_error(bio)
11 #define BIO_ENDIO(bio, error) bio_endio(bio, error)
15 #define pr_err(fmt, arg...) \
16 printk(KERN_ERR fmt, ##arg)
20 #define pr_warning(fmt, arg...) \
21 printk(KERN_WARNING fmt, ##arg)
25 #define pr_info(fmt, arg...) \
26 printk(KERN_ERR fmt, ##arg)
30 #define SWAP_DISCARD_SUPPORTED