Lines 26-46
Link Here
|
26 |
* struct. They were both replaced with a struct path. |
26 |
* struct. They were both replaced with a struct path. |
27 |
*/ |
27 |
*/ |
28 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
28 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
29 |
#define compat_vmw_nd_to_dentry(nd) (nd).path.dentry |
29 |
#define compat_vmw_nd_to_dentry(nd) (nd).dentry |
30 |
#else |
30 |
#else |
31 |
#define compat_vmw_nd_to_dentry(nd) (nd).dentry |
31 |
#define compat_vmw_nd_to_dentry(nd) (nd).dentry |
32 |
#endif |
32 |
#endif |
33 |
|
33 |
|
34 |
/* In 2.6.25-rc2, path_release(&nd) was replaced with path_put(&nd.path). */ |
34 |
/* In 2.6.25-rc2, path_release(&nd) was replaced with path_put(&nd.path). */ |
35 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
35 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
36 |
#define compat_path_release(nd) path_put(&(nd)->path) |
36 |
#define compat_path_release(nd) path_put(nd) |
37 |
#else |
37 |
#else |
38 |
#define compat_path_release(nd) path_release(nd) |
38 |
#define compat_path_release(nd) path_release(nd) |
39 |
#endif |
39 |
#endif |
40 |
|
40 |
|
41 |
/* path_lookup was removed in 2.6.39 merge window VFS merge */ |
41 |
/* path_lookup was removed in 2.6.39 merge window VFS merge */ |
42 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38) |
42 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38) |
43 |
#define compat_path_lookup(name, flags, nd) kern_path(name, flags, &((nd)->path)) |
43 |
#define compat_path_lookup(name, flags, nd) kern_path(name, flags, nd) |
44 |
#else |
44 |
#else |
45 |
#define compat_path_lookup(name, flags, nd) path_lookup(name, flags, nd) |
45 |
#define compat_path_lookup(name, flags, nd) path_lookup(name, flags, nd) |
46 |
#endif |
46 |
#endif |