more debug output
[linux-2.4.git] / fs / freevxfs / vxfs_kcompat.h
1 #ifndef _VXFS_KCOMPAT_H
2 #define _VXFS_KCOMPAT_H
3
4 #include <linux/version.h>
5
6 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
7
8 #include <linux/blkdev.h>
9
10 typedef long sector_t;
11
12 /* Dito.  */
13 static inline void map_bh(struct buffer_head *bh, struct super_block *sb, int block)
14 {
15         bh->b_state |= 1 << BH_Mapped;
16         bh->b_dev = sb->s_dev;
17         bh->b_blocknr = block;
18 }
19
20 #endif /* Kernel 2.4 */
21 #endif /* _VXFS_KCOMPAT_H */