2.6.37 build fix (partially merged r3193 from trunk).

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3365 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-04-07 18:43:30 +00:00
parent 89d4b044c3
commit 36ddc9df2a

View File

@@ -2809,8 +2809,10 @@ static int blockio_flush(struct block_device *bdev)
&& !(defined(CONFIG_SUSE_KERNEL) \
&& LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 34))
res = blkdev_issue_flush(bdev, NULL);
#else
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 37)
res = blkdev_issue_flush(bdev, GFP_KERNEL, NULL, BLKDEV_IFL_WAIT);
#else
res = blkdev_issue_flush(bdev, GFP_KERNEL, NULL);
#endif
if (res != 0)
PRINT_ERROR("blkdev_issue_flush() failed: %d", res);