Skip to content

Commit

Permalink
Merge pull request dorimanx#49 from torstehu/inode-apply-to-post-3.11…
Browse files Browse the repository at this point in the history
…-kernels

Correct the KERNEL_VERSION logic regarding whether or not
  • Loading branch information
lqs committed Jul 25, 2014
2 parents 6d90c2e + 495efe6 commit 4a12733
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exfat_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static unsigned int exfat_striptail_len(const struct qstr *qstr)
return __exfat_striptail_len(qstr->len, qstr->name);
}

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)
static int exfat_d_hash(const struct dentry *dentry, struct qstr *qstr)
#else
static int exfat_d_hash(const struct dentry *dentry, const struct inode *inode,
Expand All @@ -347,7 +347,7 @@ static int exfat_d_hash(const struct dentry *dentry, const struct inode *inode,
return 0;
}

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)
static int exfat_d_hashi(const struct dentry *dentry, struct qstr *qstr)
#else
static int exfat_d_hashi(const struct dentry *dentry, const struct inode *inode,
Expand All @@ -370,7 +370,7 @@ static int exfat_d_hashi(const struct dentry *dentry, const struct inode *inode,
return 0;
}

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)
static int exfat_cmpi(const struct dentry *parent, const struct dentry *dentry,
unsigned int len, const char *str, const struct qstr *name)
#else
Expand All @@ -391,7 +391,7 @@ static int exfat_cmpi(const struct dentry *parent, const struct inode *pinode,
return 1;
}

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)
static int exfat_cmp(const struct dentry *parent, const struct dentry *dentry,
unsigned int len, const char *str, const struct qstr *name)
#else
Expand Down

0 comments on commit 4a12733

Please sign in to comment.