hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/fscache/main.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* General filesystem local caching manager
23 *
34 * Copyright (C) 2004-2007 Red Hat, Inc. All Rights Reserved.
45 * Written by David Howells (dhowells@redhat.com)
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the License, or (at your option) any later version.
106 */
117
128 #define FSCACHE_DEBUG_LEVEL CACHE
....@@ -55,8 +51,7 @@
5551 static struct ctl_table_header *fscache_sysctl_header;
5652
5753 static int fscache_max_active_sysctl(struct ctl_table *table, int write,
58
- void __user *buffer,
59
- size_t *lenp, loff_t *ppos)
54
+ void *buffer, size_t *lenp, loff_t *ppos)
6055 {
6156 struct workqueue_struct **wqp = table->extra1;
6257 unsigned int *datap = table->data;
....@@ -188,7 +183,6 @@
188183 ret = -ENOMEM;
189184 goto error_cookie_jar;
190185 }
191
- fscache_cookie_init();
192186
193187 fscache_root = kobject_create_and_add("fscache", kernel_kobj);
194188 if (!fscache_root)