Skip to content

Commit

Permalink
glitched-cfs-additions: fix for 6.5.2, remove performance-killing pri…
Browse files Browse the repository at this point in the history
…ntk calls in bcachefs patches (#809)

* 6.5 bcachefs: remove performance-killing printk calls

* 6.4 bcachefs: remove performance-killing printk calls
  • Loading branch information
Tatsh authored Sep 12, 2023
1 parent 8a56e83 commit 3e8afbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions linux-tkg-patches/6.4/0008-6.4-bcachefs.patch
Original file line number Diff line number Diff line change
Expand Up @@ -101965,7 +101965,7 @@ diff --git a/mm/madvise.c b/mm/madvise.c
index b5ffbaf61..e08639a7c 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -1311,6 +1311,64 @@ int madvise_set_anon_name(struct mm_struct *mm, unsigned long start,
@@ -1311,6 +1311,60 @@ int madvise_set_anon_name(struct mm_struct *mm, unsigned long start,
madvise_vma_anon_name);
}
#endif /* CONFIG_ANON_VMA_NAME */
Expand All @@ -101979,8 +101979,6 @@ index b5ffbaf61..e08639a7c 100644
+ case (2):
+ return (unsigned long)kmalloc(size, GFP_KERNEL | __GFP_ACCOUNT);
+ default:
+ printk("test_alloc invoked with args in1=%lu in2=%lu\n",
+ in1, in2);
+ return 0;
+ }
+}
Expand All @@ -101996,8 +101994,6 @@ index b5ffbaf61..e08639a7c 100644
+ kfree((void*)addr);
+ break;
+ default:
+ printk("test_free invoked with args in1=%lu in2=%lu\n",
+ in1, in2);
+ break;
+ }
+}
Expand Down
6 changes: 1 addition & 5 deletions linux-tkg-patches/6.5/0008-6.5-bcachefs.patch
Original file line number Diff line number Diff line change
Expand Up @@ -98435,7 +98435,7 @@ diff --git a/mm/madvise.c b/mm/madvise.c
index ec30f48f8..fa2f140d0 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -1330,6 +1330,64 @@ int madvise_set_anon_name(struct mm_struct *mm, unsigned long start,
@@ -1330,6 +1330,60 @@ int madvise_set_anon_name(struct mm_struct *mm, unsigned long start,
madvise_vma_anon_name);
}
#endif /* CONFIG_ANON_VMA_NAME */
Expand All @@ -98449,8 +98449,6 @@ index ec30f48f8..fa2f140d0 100644
+ case (2):
+ return (unsigned long)kmalloc(size, GFP_KERNEL | __GFP_ACCOUNT);
+ default:
+ printk("test_alloc invoked with args in1=%lu in2=%lu\n",
+ in1, in2);
+ return 0;
+ }
+}
Expand All @@ -98466,8 +98464,6 @@ index ec30f48f8..fa2f140d0 100644
+ kfree((void*)addr);
+ break;
+ default:
+ printk("test_free invoked with args in1=%lu in2=%lu\n",
+ in1, in2);
+ break;
+ }
+}
Expand Down

0 comments on commit 3e8afbe

Please sign in to comment.