mirror of
https://github.com/dynup/kpatch
synced 2025-02-09 21:46:53 +00:00
22 lines
558 B
Diff
22 lines
558 B
Diff
diff -Nupr src.orig/fs/aio.c src/fs/aio.c
|
|
--- src.orig/fs/aio.c.orig 2017-02-08 21:10:29.963882517 -0500
|
|
+++ src/fs/aio.c 2017-02-08 21:10:51.501883039 -0500
|
|
@@ -271,10 +271,17 @@ 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;
|
|
struct address_space *i_mapping;
|
|
+ kpatch_aio_foo();
|
|
|
|
if (aio_ring_file) {
|
|
truncate_setsize(aio_ring_file->f_inode, 0);
|