mirror of
https://github.com/dynup/kpatch
synced 2025-02-27 07:20:59 +00:00
24 lines
625 B
Diff
24 lines
625 B
Diff
diff -Nupr src.orig/fs/aio.c src/fs/aio.c
|
|
--- src.orig/fs/aio.c 2023-04-24 14:22:43.250959301 -0400
|
|
+++ src/fs/aio.c 2023-04-24 14:23:21.002089674 -0400
|
|
@@ -247,11 +247,18 @@ static int __init aio_setup(void)
|
|
}
|
|
__initcall(aio_setup);
|
|
|
|
-static void put_aio_ring_file(struct kioctx *ctx)
|
|
+void kpatch_aio_foo(void)
|
|
+{
|
|
+ if (!jiffies)
|
|
+ printk("kpatch aio foo\n");
|
|
+}
|
|
+
|
|
+__always_inline static void put_aio_ring_file(struct kioctx *ctx)
|
|
{
|
|
struct file *aio_ring_file = ctx->aio_ring_file;
|
|
struct address_space *i_mapping;
|
|
|
|
+ kpatch_aio_foo();
|
|
if (aio_ring_file) {
|
|
truncate_setsize(file_inode(aio_ring_file), 0);
|
|
|