Skip to content

Commit

Permalink
Merge pull request zen-kernel#72 from johnbeard/master
Browse files Browse the repository at this point in the history
Fix compilation error for kernel version codes < 3.0.0
  • Loading branch information
dorimanx committed Aug 20, 2015
2 parents d5f0555 + 418c8e4 commit 3e2ccbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exfat_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,14 @@ static int exfat_revalidate_ci(struct dentry *dentry, struct nameidata *nd)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,00)
if (flags & LOOKUP_RCU)
return -ECHILD;
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,00)
#else
unsigned int flags;

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,00)
if (nd && nd->flags & LOOKUP_RCU)
return -ECHILD;
#endif

flags = nd ? nd->flags : 0;
#else
flags = nd ? nd->flags : 0;
#endif

Expand Down

0 comments on commit 3e2ccbc

Please sign in to comment.