Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0-or-later
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /* General filesystem local caching manager
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  * Copyright (C) 2004-2007 Red Hat, Inc. All Rights Reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * Written by David Howells (dhowells@redhat.com)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #define FSCACHE_DEBUG_LEVEL CACHE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) #include <linux/init.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #include <linux/sched.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #include <linux/completion.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #include <linux/slab.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #include <linux/seq_file.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #define CREATE_TRACE_POINTS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include "internal.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) MODULE_DESCRIPTION("FS Cache Manager");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) MODULE_AUTHOR("Red Hat, Inc.");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) MODULE_LICENSE("GPL");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) unsigned fscache_defer_lookup = 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) module_param_named(defer_lookup, fscache_defer_lookup, uint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 		   S_IWUSR | S_IRUGO);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) MODULE_PARM_DESC(fscache_defer_lookup,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 		 "Defer cookie lookup to background thread");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) unsigned fscache_defer_create = 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) module_param_named(defer_create, fscache_defer_create, uint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 		   S_IWUSR | S_IRUGO);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) MODULE_PARM_DESC(fscache_defer_create,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 		 "Defer cookie creation to background thread");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) unsigned fscache_debug;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) module_param_named(debug, fscache_debug, uint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 		   S_IWUSR | S_IRUGO);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) MODULE_PARM_DESC(fscache_debug,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 		 "FS-Cache debugging mask");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) struct kobject *fscache_root;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) struct workqueue_struct *fscache_object_wq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) struct workqueue_struct *fscache_op_wq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) DEFINE_PER_CPU(wait_queue_head_t, fscache_object_cong_wait);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) /* these values serve as lower bounds, will be adjusted in fscache_init() */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) static unsigned fscache_object_max_active = 4;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) static unsigned fscache_op_max_active = 2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) #ifdef CONFIG_SYSCTL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) static struct ctl_table_header *fscache_sysctl_header;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) static int fscache_max_active_sysctl(struct ctl_table *table, int write,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 				     void *buffer, size_t *lenp, loff_t *ppos)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	struct workqueue_struct **wqp = table->extra1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	unsigned int *datap = table->data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	ret = proc_dointvec(table, write, buffer, lenp, ppos);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	if (ret == 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 		workqueue_set_max_active(*wqp, *datap);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) static struct ctl_table fscache_sysctls[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 		.procname	= "object_max_active",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 		.data		= &fscache_object_max_active,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 		.maxlen		= sizeof(unsigned),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 		.mode		= 0644,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 		.proc_handler	= fscache_max_active_sysctl,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 		.extra1		= &fscache_object_wq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 		.procname	= "operation_max_active",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 		.data		= &fscache_op_max_active,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 		.maxlen		= sizeof(unsigned),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 		.mode		= 0644,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 		.proc_handler	= fscache_max_active_sysctl,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 		.extra1		= &fscache_op_wq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	{}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) static struct ctl_table fscache_sysctls_root[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 		.procname	= "fscache",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 		.mode		= 0555,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 		.child		= fscache_sysctls,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	{}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97)  * Mixing scores (in bits) for (7,20):
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98)  * Input delta: 1-bit      2-bit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99)  * 1 round:     330.3     9201.6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100)  * 2 rounds:   1246.4    25475.4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101)  * 3 rounds:   1907.1    31295.1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102)  * 4 rounds:   2042.3    31718.6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103)  * Perfect:    2048      31744
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104)  *            (32*64)   (32*31/2 * 64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) #define HASH_MIX(x, y, a)	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 	(	x ^= (a),	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 	y ^= x,	x = rol32(x, 7),\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 	x += y,	y = rol32(y,20),\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 	y *= 9			)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) static inline unsigned int fold_hash(unsigned long x, unsigned long y)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 	/* Use arch-optimized multiply if one exists */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	return __hash_32(y ^ __hash_32(x));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119)  * Generate a hash.  This is derived from full_name_hash(), but we want to be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)  * sure it is arch independent and that it doesn't change as bits of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121)  * computed hash value might appear on disk.  The caller also guarantees that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)  * the hashed data will be a series of aligned 32-bit words.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) unsigned int fscache_hash(unsigned int salt, unsigned int *data, unsigned int n)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	unsigned int a, x = 0, y = salt;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 	for (; n; n--) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 		a = *data++;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 		HASH_MIX(x, y, a);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	return fold_hash(x, y);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136)  * initialise the fs caching module
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) static int __init fscache_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 	unsigned int nr_cpus = num_possible_cpus();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 	unsigned int cpu;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 	fscache_object_max_active =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 		clamp_val(nr_cpus,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 			  fscache_object_max_active, WQ_UNBOUND_MAX_ACTIVE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	ret = -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 	fscache_object_wq = alloc_workqueue("fscache_object", WQ_UNBOUND,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 					    fscache_object_max_active);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	if (!fscache_object_wq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 		goto error_object_wq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	fscache_op_max_active =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 		clamp_val(fscache_object_max_active / 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 			  fscache_op_max_active, WQ_UNBOUND_MAX_ACTIVE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 	ret = -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	fscache_op_wq = alloc_workqueue("fscache_operation", WQ_UNBOUND,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 					fscache_op_max_active);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	if (!fscache_op_wq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 		goto error_op_wq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	for_each_possible_cpu(cpu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 		init_waitqueue_head(&per_cpu(fscache_object_cong_wait, cpu));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	ret = fscache_proc_init();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	if (ret < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 		goto error_proc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) #ifdef CONFIG_SYSCTL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	ret = -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	fscache_sysctl_header = register_sysctl_table(fscache_sysctls_root);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	if (!fscache_sysctl_header)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 		goto error_sysctl;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	fscache_cookie_jar = kmem_cache_create("fscache_cookie_jar",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 					       sizeof(struct fscache_cookie),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 					       0, 0, NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	if (!fscache_cookie_jar) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 		pr_notice("Failed to allocate a cookie jar\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 		ret = -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 		goto error_cookie_jar;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	fscache_root = kobject_create_and_add("fscache", kernel_kobj);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	if (!fscache_root)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 		goto error_kobj;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	pr_notice("Loaded\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) error_kobj:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 	kmem_cache_destroy(fscache_cookie_jar);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) error_cookie_jar:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) #ifdef CONFIG_SYSCTL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	unregister_sysctl_table(fscache_sysctl_header);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) error_sysctl:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	fscache_proc_cleanup();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) error_proc:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	destroy_workqueue(fscache_op_wq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) error_op_wq:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	destroy_workqueue(fscache_object_wq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) error_object_wq:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) fs_initcall(fscache_init);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213)  * clean up on module removal
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) static void __exit fscache_exit(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	_enter("");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 	kobject_put(fscache_root);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	kmem_cache_destroy(fscache_cookie_jar);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) #ifdef CONFIG_SYSCTL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 	unregister_sysctl_table(fscache_sysctl_header);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) 	fscache_proc_cleanup();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 	destroy_workqueue(fscache_op_wq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) 	destroy_workqueue(fscache_object_wq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) 	pr_notice("Unloaded\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) module_exit(fscache_exit);