We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db59c0e commit a68465cCopy full SHA for a68465c
fs/nfsd/nfscache.c
@@ -165,13 +165,17 @@ int nfsd_reply_cache_init(void)
165
{
166
unsigned int hashsize;
167
unsigned int i;
168
+ int status = 0;
169
170
max_drc_entries = nfsd_cache_size_limit();
171
atomic_set(&num_drc_entries, 0);
172
hashsize = nfsd_hashsize(max_drc_entries);
173
maskbits = ilog2(hashsize);
174
- register_shrinker(&nfsd_reply_cache_shrinker);
175
+ status = register_shrinker(&nfsd_reply_cache_shrinker);
176
+ if (status)
177
+ return status;
178
+
179
drc_slab = kmem_cache_create("nfsd_drc", sizeof(struct svc_cacherep),
180
0, 0, NULL);
181
if (!drc_slab)
0 commit comments