forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
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;