1 #ifndef _VXFS_KCOMPAT_H
2 #define _VXFS_KCOMPAT_H
4 #include <linux/version.h>
6 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
8 #include <linux/blkdev.h>
10 typedef long sector_t;
13 static inline void map_bh(struct buffer_head *bh, struct super_block *sb, int block)
15 bh->b_state |= 1 << BH_Mapped;
16 bh->b_dev = sb->s_dev;
17 bh->b_blocknr = block;
20 #endif /* Kernel 2.4 */
21 #endif /* _VXFS_KCOMPAT_H */