mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user