Builds now agains the openSUSE 11.3 kernel headers too. OpenSUSE 11.3 has a 2.6.34 kernel with blkdev_issue_flush() backported from 2.6.35.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2086 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-09-10 08:08:34 +00:00
parent 055686251d
commit c7c33ed5d7
+3 -1
View File
@@ -2784,7 +2784,9 @@ static int blockio_flush(struct block_device *bdev)
TRACE_ENTRY();
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35) \
&& !(defined(CONFIG_SUSE_KERNEL) \
&& LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 34))
res = blkdev_issue_flush(bdev, NULL);
#else
res = blkdev_issue_flush(bdev, GFP_KERNEL, NULL, BLKDEV_IFL_WAIT);