|
Lines 597-603
Link Here
|
| 597 |
#ifdef OLD_KERNEL |
597 |
#ifdef OLD_KERNEL |
| 598 |
static DECLARE_FSTYPE_DEV(cdfs_fs_type, FSNAME, cdfs_mount); |
598 |
static DECLARE_FSTYPE_DEV(cdfs_fs_type, FSNAME, cdfs_mount); |
| 599 |
#else |
599 |
#else |
| 600 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) |
600 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39) |
|
|
601 |
static int cdfs_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data, struct vfsmount *mnt) { |
| 602 |
return mount_bdev(fs_type, flags, dev_name, data, cdfs_fill_super); |
| 603 |
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) |
| 601 |
static int cdfs_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data, struct vfsmount *mnt) { |
604 |
static int cdfs_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data, struct vfsmount *mnt) { |
| 602 |
return get_sb_bdev(fs_type, flags, dev_name, data, cdfs_fill_super, mnt); |
605 |
return get_sb_bdev(fs_type, flags, dev_name, data, cdfs_fill_super, mnt); |
| 603 |
#else |
606 |
#else |
|
Lines 609-615
Link Here
|
| 609 |
static struct file_system_type cdfs_fs_type = { |
612 |
static struct file_system_type cdfs_fs_type = { |
| 610 |
.owner = THIS_MODULE, |
613 |
.owner = THIS_MODULE, |
| 611 |
.name = "cdfs", |
614 |
.name = "cdfs", |
|
|
615 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39) |
| 616 |
.mount = cdfs_get_sb, |
| 617 |
#else |
| 612 |
.get_sb = cdfs_get_sb, |
618 |
.get_sb = cdfs_get_sb, |
|
|
619 |
#endif |
| 613 |
.kill_sb = kill_block_super, |
620 |
.kill_sb = kill_block_super, |
| 614 |
.fs_flags = FS_REQUIRES_DEV |
621 |
.fs_flags = FS_REQUIRES_DEV |
| 615 |
}; |
622 |
}; |