Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #155 from pubyun/master
Browse files Browse the repository at this point in the history
fix compile error on RHEL 6.5
  • Loading branch information
mohans committed Dec 9, 2013
2 parents 143c93d + aa1eb59 commit 304bbc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flashcache_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1746,12 +1746,12 @@ flashcache_init(void)

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
r = kcopyd_client_create(FLASHCACHE_COPY_PAGES, &flashcache_kcp_client);
#elif ((LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0))) || (defined(RHEL_RELEASE_CODE) && (RHEL_RELEASE_CODE >= 1538))
#elif ((LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0))) || (defined(RHEL_RELEASE_CODE) && (RHEL_RELEASE_CODE >= 1538) && (RHEL_RELEASE_CODE <= 1540))
flashcache_kcp_client = dm_kcopyd_client_create();
if ((r = IS_ERR(flashcache_kcp_client))) {
r = PTR_ERR(flashcache_kcp_client);
}
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0)) || (defined(RHEL_RELEASE_CODE) && (RHEL_RELEASE_CODE >= 1541))
flashcache_kcp_client = dm_kcopyd_client_create(NULL);
if ((r = IS_ERR(flashcache_kcp_client))) {
r = PTR_ERR(flashcache_kcp_client);
Expand Down

0 comments on commit 304bbc1

Please sign in to comment.