mirror of
https://github.com/dynup/kpatch
synced 2024-12-18 19:34:30 +00:00
0e0cee369a
Added integration-test patches rebased against rhel-7.7 GA kernel. No conflicts, some fuzz. Signed-off-by: Artem Savkov <asavkov@redhat.com>
22 lines
500 B
Diff
22 lines
500 B
Diff
Index: kernel/fs/aio.c
|
|
===================================================================
|
|
--- kernel.orig/fs/aio.c
|
|
+++ kernel/fs/aio.c
|
|
@@ -223,9 +223,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);
|
|
|