.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* General filesystem local caching manager |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (C) 2004-2007 Red Hat, Inc. All Rights Reserved. |
---|
4 | 5 | * 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. |
---|
10 | 6 | */ |
---|
11 | 7 | |
---|
12 | 8 | #define FSCACHE_DEBUG_LEVEL CACHE |
---|
.. | .. |
---|
55 | 51 | static struct ctl_table_header *fscache_sysctl_header; |
---|
56 | 52 | |
---|
57 | 53 | 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) |
---|
60 | 55 | { |
---|
61 | 56 | struct workqueue_struct **wqp = table->extra1; |
---|
62 | 57 | unsigned int *datap = table->data; |
---|
.. | .. |
---|
188 | 183 | ret = -ENOMEM; |
---|
189 | 184 | goto error_cookie_jar; |
---|
190 | 185 | } |
---|
191 | | - fscache_cookie_init(); |
---|
192 | 186 | |
---|
193 | 187 | fscache_root = kobject_create_and_add("fscache", kernel_kobj); |
---|
194 | 188 | if (!fscache_root) |
---|