]> git.pld-linux.org Git - packages/VMware-workstation.git/blob - VMware-workstation-vmblock.patch
- drop obsolete and outdated manual inclusion of rpm macros
[packages/VMware-workstation.git] / VMware-workstation-vmblock.patch
1 --- vmware-any-any-update115/vmblock-only/linux/dentry.c.orig   2007-11-28 11:33:57.000000000 +0100
2 +++ vmware-any-any-update115/vmblock-only/linux/dentry.c        2008-07-26 14:03:37.000000000 +0200
3 @@ -112,8 +112,13 @@
4        LOG(4, "DentryOpRevalidate: [%s] no longer exists\n", iinfo->name);
5        return 0;
6     }
7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
8 +   ret = actualNd.path.dentry && actualNd.path.dentry->d_inode;
9 +   path_put(&actualNd.path);
10 +#else
11     ret = actualNd.dentry && actualNd.dentry->d_inode;
12     path_release(&actualNd);
13 +#endif
14  
15     LOG(8, "DentryOpRevalidate: [%s] %s revalidated\n",
16         iinfo->name, ret ? "" : "not");
17 --- vmware-any-any-update115/vmblock-only/linux/filesystem.c.orig       2007-11-28 11:33:57.000000000 +0100
18 +++ vmware-any-any-update115/vmblock-only/linux/filesystem.c    2008-07-26 14:06:42.000000000 +0200
19 @@ -273,7 +273,11 @@
20  
21     ASSERT(sb);
22  
23 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
24 +   inode = iget_locked(sb, ino);
25 +#else
26     inode = iget(sb, ino);
27 +#endif
28     if (!inode) {
29        return NULL;
30     }
31 @@ -301,8 +305,13 @@
32        return inode;
33     }
34  
35 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
36 +   iinfo->actualDentry = actualNd.path.dentry;
37 +   path_put(&actualNd.path);
38 +#else
39     iinfo->actualDentry = actualNd.dentry;
40     path_release(&actualNd);
41 +#endif
42  
43     return inode;
44  
45 --- vmware-any-any-update115/vmblock-only/linux/super.c.orig    2007-11-28 11:33:57.000000000 +0100
46 +++ vmware-any-any-update115/vmblock-only/linux/super.c 2008-07-26 14:10:27.000000000 +0200
47 @@ -37,7 +37,9 @@
48  #else
49  static void SuperOpClearInode(struct inode *inode);
50  #endif
51 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
52  static void SuperOpReadInode(struct inode *inode);
53 +#endif
54  #ifdef VMW_STATFS_2618
55  static int SuperOpStatfs(struct dentry *dentry, struct compat_kstatfs *stat);
56  #else
57 @@ -52,7 +54,9 @@
58  #else
59     .clear_inode   = SuperOpClearInode,
60  #endif
61 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
62     .read_inode    = SuperOpReadInode,
63 +#endif
64     .statfs        = SuperOpStatfs,
65  };
66  
67 @@ -138,6 +142,7 @@
68   *----------------------------------------------------------------------------
69   */
70  
71 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
72  static void
73  SuperOpReadInode(struct inode *inode)  // IN: Inode to initialize
74  {
75 @@ -147,6 +152,7 @@
76     iinfo->nameLen = 0;
77     iinfo->actualDentry = NULL;
78  }
79 +#endif
80  
81  
82  /*
This page took 0.066844 seconds and 3 git commands to generate.