hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/fs/xfs/xfs_mru_cache.c
....@@ -333,12 +333,12 @@
333333 if (!(grp_time = msecs_to_jiffies(lifetime_ms) / grp_count))
334334 return -EINVAL;
335335
336
- if (!(mru = kmem_zalloc(sizeof(*mru), KM_SLEEP)))
336
+ if (!(mru = kmem_zalloc(sizeof(*mru), 0)))
337337 return -ENOMEM;
338338
339339 /* An extra list is needed to avoid reaping up to a grp_time early. */
340340 mru->grp_count = grp_count + 1;
341
- mru->lists = kmem_zalloc(mru->grp_count * sizeof(*mru->lists), KM_SLEEP);
341
+ mru->lists = kmem_zalloc(mru->grp_count * sizeof(*mru->lists), 0);
342342
343343 if (!mru->lists) {
344344 err = -ENOMEM;