Skip to content

Instantly share code, notes, and snippets.

@nbkolchin
Created April 3, 2016 13:18
Show Gist options
  • Save nbkolchin/8a325a06d616788ce192bc0f44e32437 to your computer and use it in GitHub Desktop.
Save nbkolchin/8a325a06d616788ce192bc0f44e32437 to your computer and use it in GitHub Desktop.
Parallels diff for Linux 4.5
--- inode.c.orig 2016-02-16 18:23:37.000000000 +0300
+++ inode.c 2016-04-03 00:08:38.719000000 +0300
@@ -620,6 +620,9 @@
char *buf, *src_path, *tgt_path;
int src_len, tgt_len, ret;
+ if(!dentry)
+ return ERR_PTR(-ECHILD);
+
tgt_path = NULL;
src_len = tgt_len = PATH_MAX;
buf = kmalloc(src_len, GFP_KERNEL);
@@ -651,7 +654,7 @@
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
-static char *prlfs_follow_link(struct dentry *dentry, void **cookie)
+static char *prlfs_follow_link(struct dentry *dentry, struct inode* i, void **cookie)
{
return do_read_symlink(dentry);
}
@@ -734,7 +737,7 @@
.readlink = generic_readlink,
.getattr = prlfs_getattr,
#endif
- .follow_link = prlfs_follow_link,
+ .get_link = prlfs_follow_link,
};
static int prlfs_root_revalidate(struct dentry *dentry,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment