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 #62 from lastguru1/upstream
Browse files Browse the repository at this point in the history
Fixing: typo and forgotten if
  • Loading branch information
mohans committed Apr 6, 2012
2 parents d741759 + 14f84c6 commit c0b7e64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flashcache_ioctl.c
Expand Up @@ -226,7 +226,7 @@ flashcache_del_all_pids(struct cache_c *dmc, int which_list, int force)
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31) #elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
task = find_task_by_vpid(node->pid); task = find_task_by_vpid(node->pid);
#else #else
ask = pid_task(find_vpid(node->pid), PIDTYPE_PID); task = pid_task(find_vpid(node->pid), PIDTYPE_PID);
#endif #endif
/* /*
* If that task was found, don't remove it ! * If that task was found, don't remove it !
Expand Down Expand Up @@ -338,7 +338,7 @@ flashcache_uncacheable(struct cache_c *dmc, struct bio *bio)
* do a final check to see if this is sequential i/o. If * do a final check to see if this is sequential i/o. If
* the relevant sysctl is set, we will skip it. * the relevant sysctl is set, we will skip it.
*/ */
dontcache = skip_sequential_io(dmc, bio); if (!dontcache) dontcache = skip_sequential_io(dmc, bio);


} else { /* cache nothing */ } else { /* cache nothing */
/* If the tid has been whitelisted, we cache /* If the tid has been whitelisted, we cache
Expand Down

0 comments on commit c0b7e64

Please sign in to comment.