summaryrefslogtreecommitdiff
blob: 7e83a1e91092ff857f90ec7b4d9a5a4864c67e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/vmblock-only/linux/filesystem.c	2012-05-23 20:08:00.632051396 -0500
+++ b/vmblock-only/linux/filesystem.c	2012-05-23 20:17:00.896297163 -0500
@@ -517,7 +517,11 @@
       return -EINVAL;
    }
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0)
    rootDentry = d_alloc_root(rootInode);
+#else
+   rootDentry = d_make_root(rootInode);
+#endif
    if (!rootDentry) {
       iput(rootInode);
       return -ENOMEM;