Lines 38-44
Link Here
|
38 |
static struct dentry *InodeOpLookup(struct inode *dir, |
38 |
static struct dentry *InodeOpLookup(struct inode *dir, |
39 |
struct dentry *dentry, unsigned int flags); |
39 |
struct dentry *dentry, unsigned int flags); |
40 |
static int InodeOpReadlink(struct dentry *dentry, char __user *buffer, int buflen); |
40 |
static int InodeOpReadlink(struct dentry *dentry, char __user *buffer, int buflen); |
41 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
41 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
|
|
42 |
static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie); |
43 |
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
42 |
static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
44 |
static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
43 |
#else |
45 |
#else |
44 |
static int InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
46 |
static int InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
Lines 207-213
static void *
Link Here
|
207 |
static int |
209 |
static int |
208 |
#endif |
210 |
#endif |
209 |
InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |
211 |
InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |
210 |
struct nameidata *nd) // OUT: stores result |
212 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
|
|
213 |
void **cookie |
214 |
#else |
215 |
struct nameidata *nd |
216 |
#endif |
217 |
) // OUT: stores result |
211 |
{ |
218 |
{ |
212 |
int ret; |
219 |
int ret; |
213 |
VMBlockInodeInfo *iinfo; |
220 |
VMBlockInodeInfo *iinfo; |