mirror of
https://github.com/dynup/kpatch
synced 2024-12-12 00:14:35 +00:00
e27ffadce1
The "descriptor" static local variables and their containing __verbose section are used for dynamic debug printks. They should be considered as special static local variable symbols because they have the same requirements: they should never be correlated and they should only be included if referenced by an included function.
22 lines
491 B
Diff
22 lines
491 B
Diff
Index: src/fs/aio.c
|
|
===================================================================
|
|
--- src.orig/fs/aio.c
|
|
+++ src/fs/aio.c
|
|
@@ -229,9 +229,16 @@ static int __init aio_setup(void)
|
|
}
|
|
__initcall(aio_setup);
|
|
|
|
+void kpatch_aio_foo(void)
|
|
+{
|
|
+ if (!jiffies)
|
|
+ printk("kpatch aio foo\n");
|
|
+}
|
|
+
|
|
static void put_aio_ring_file(struct kioctx *ctx)
|
|
{
|
|
struct file *aio_ring_file = ctx->aio_ring_file;
|
|
+ kpatch_aio_foo();
|
|
if (aio_ring_file) {
|
|
truncate_setsize(aio_ring_file->f_inode, 0);
|
|
|