Linux 2.6.x compat, blkdev_compat.h

For legacy reasons the zvol.c and vdev_disk.c Linux compatibility
code ended up in sys/blkdev.h and sys/vdev_disk.h headers.  While
there are worse places for this code to live it should be in a
linux/blkdev_compat.h header.  This change moves this block device
Linux compatibility code in to the linux/blkdev_compat.h header
and updates all the correct #include locations.  This is not a
functional change or bug fix, it is just code cleanup.
This commit is contained in:
Brian Behlendorf
2011-02-22 12:15:13 -08:00
parent 075cf6cb72
commit 61e909608d
7 changed files with 69 additions and 64 deletions
+1
View File
@@ -44,6 +44,7 @@
#include <sys/zfs_rlock.h>
#include <sys/zfs_znode.h>
#include <sys/zvol.h>
#include <linux/blkdev_compat.h>
unsigned int zvol_major = ZVOL_MAJOR;
unsigned int zvol_threads = 0;