OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
3.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../lazyfs/linux-2.6.18.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./configure.orig 2006-10-08 09:32:26.000000000 -0400
  17. +++ ./configure 2006-10-08 09:33:27.000000000 -0400
  18. @@ -835,6 +835,9 @@
  19. #include "confdefs.h"
  20. #include <linux/version.h>
  21. +#ifndef UTS_RELEASE
  22. +#include <linux/utsrelease.h>
  23. +#endif
  24. #include <stdio.h>
  25. int main(void) {
  26. fputs(UTS_RELEASE, fopen("conftestversion", "w"));
  27. --- lazyfs.c.orig 2004-08-15 12:16:41.000000000 -0400
  28. +++ lazyfs.c 2006-10-08 12:18:13.000000000 -0400
  29. @@ -268,7 +268,7 @@
  30. next = dentry->d_subdirs.next;
  31. while (next != &dentry->d_subdirs) {
  32. - struct dentry *c = list_entry(next, struct dentry, d_child);
  33. + struct dentry *c = list_entry(next, struct dentry, d_u.d_child);
  34. show_refs(c, indent + 2);
  35. next = next->next;
  36. }
  37. @@ -997,7 +997,7 @@
  38. next = head->next;
  39. while (next != head) {
  40. - struct dentry *child = list_entry(next, struct dentry, d_child);
  41. + struct dentry *child = list_entry(next, struct dentry, d_u.d_child);
  42. struct lazy_de_info *info = child->d_fsdata;
  43. next = next->next;
  44. @@ -1036,7 +1036,7 @@
  45. #endif
  46. /* Turn it into its own subtree */
  47. - list_del_init(&dentry->d_child);
  48. + list_del_init(&dentry->d_u.d_child);
  49. if (atomic_read(&dentry->d_count) > 1) {
  50. //printk("Dentry '%s' will be freed later\n",
  51. // dentry->d_name.name);
  52. @@ -1044,7 +1044,7 @@
  53. atomic_dec(&dentry->d_count);
  54. } else {
  55. /* (reusing d_child; noone else has a ref anyway) */
  56. - list_add(&dentry->d_child, to_be_removed);
  57. + list_add(&dentry->d_u.d_child, to_be_removed);
  58. }
  59. /* Break link to parent */
  60. @@ -1076,7 +1076,7 @@
  61. resume:
  62. while (next != &this_parent->d_subdirs) {
  63. struct list_head *tmp = next;
  64. - struct dentry *dentry = list_entry(tmp, struct dentry, d_child);
  65. + struct dentry *dentry = list_entry(tmp, struct dentry, d_u.d_child);
  66. next = tmp->next;
  67. if (d_unhashed(dentry) || !dentry->d_inode)
  68. continue;
  69. @@ -1089,7 +1089,7 @@
  70. /* Moving up to parent */
  71. - next = this_parent->d_child.next;
  72. + next = this_parent->d_u.d_child.next;
  73. parent = this_parent->d_parent;
  74. genocide_one(this_parent, &to_be_removed);
  75. @@ -1100,9 +1100,9 @@
  76. spin_unlock(&dcache_lock);
  77. list_for_each_safe(next, tmp, &to_be_removed) {
  78. - struct dentry *kid = list_entry(next, struct dentry, d_child);
  79. + struct dentry *kid = list_entry(next, struct dentry, d_u.d_child);
  80. //printk("Removing '%s' now\n", kid->d_name.name);
  81. - list_del_init(&kid->d_child);
  82. + list_del_init(&kid->d_u.d_child);
  83. dput(kid);
  84. }
  85. }