OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [fs/] [freevxfs/] [vxfs_kcompat.h] - Rev 1765

Compare with Previous | Blame | View Log

#ifndef _VXFS_KCOMPAT_H
#define _VXFS_KCOMPAT_H
 
#include <linux/version.h>
 
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
 
#include <linux/blkdev.h>
 
typedef long sector_t;
 
/* Dito.  */
static inline void map_bh(struct buffer_head *bh, struct super_block *sb, int block)
{
	bh->b_state |= 1 << BH_Mapped;
	bh->b_dev = sb->s_dev;
	bh->b_blocknr = block;
}
 
#endif /* Kernel 2.4 */
#endif /* _VXFS_KCOMPAT_H */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.