1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- vmblock-only/linux/inode.c 2017-02-21 08:38:50.844678686 -0700
+++ vmblock-only/linux/inode.c 2017-02-21 08:59:40.557917497 -0700
@@ -207,8 +207,10 @@
return vfs_readlink(dentry, buffer, buflen, iinfo->name);
#elif LINUX_VERSION_CODE <= KERNEL_VERSION(4, 6, 99)
return readlink_copy(buffer, buflen, iinfo->name);
-#else
+#elif LINUX_VERSION_CODE <= KERNEL_VERSION(4, 9, 99)
return generic_readlink(dentry, buffer, buflen);
+#else
+ return vfs_readlink(dentry, buffer, buflen);
#endif
}
|