compat-2.6.19-2.6.21.patch
来自「Ubuntu公司提供免费的iSCSI Target」· PATCH 代码 · 共 42 行
PATCH
42 行
Index: kernel/event.c===================================================================--- kernel/event.c (working copy)+++ kernel/event.c (revision 122)@@ -95,8 +95,7 @@ int event_send(u32 tid, u64 sid, u32 cid int event_init(void) {- nl = netlink_kernel_create(NETLINK_IET, 1, event_recv, NULL,- THIS_MODULE);+ nl = netlink_kernel_create(NETLINK_IET, 1, event_recv, THIS_MODULE); if (!nl) return -ENOMEM; elseIndex: kernel/iscsi.c===================================================================--- kernel/iscsi.c (working copy)+++ kernel/iscsi.c (revision 137)@@ -1757,7 +1757,8 @@ static int iscsi_init(void) if ((err = event_init()) < 0) goto err; - iscsi_cmnd_cache = KMEM_CACHE(iscsi_cmnd, 0);+ iscsi_cmnd_cache = kmem_cache_create("iscsi_cmnd", sizeof(struct iscsi_cmnd),+ 0, 0, NULL, NULL); if (!iscsi_cmnd_cache) goto err; Index: kernel/tio.c===================================================================--- kernel/tio.c (working copy)+++ kernel/tio.c (revision 137)@@ -110,7 +110,8 @@ int tio_sync(struct iet_volume *lu, stru int tio_init(void) {- tio_cache = KMEM_CACHE(tio, 0);+ tio_cache = kmem_cache_create("tio", sizeof(struct tio),+ 0, 0, NULL, NULL); return tio_cache ? 0 : -ENOMEM; }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?