]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/xfs/xfs_mru_cache.c
Merge tag 'for-linus-5.6-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubca...
[linux.git] / fs / xfs / xfs_mru_cache.c
index 74738813f60d8bb6561c3ef9b3cf7ad4923276d5..a06661dac5be90fa3b50843e629220fb688eeaf5 100644 (file)
@@ -333,12 +333,12 @@ xfs_mru_cache_create(
        if (!(grp_time = msecs_to_jiffies(lifetime_ms) / grp_count))
                return -EINVAL;
 
-       if (!(mru = kmem_zalloc(sizeof(*mru), KM_SLEEP)))
+       if (!(mru = kmem_zalloc(sizeof(*mru), 0)))
                return -ENOMEM;
 
        /* An extra list is needed to avoid reaping up to a grp_time early. */
        mru->grp_count = grp_count + 1;
-       mru->lists = kmem_zalloc(mru->grp_count * sizeof(*mru->lists), KM_SLEEP);
+       mru->lists = kmem_zalloc(mru->grp_count * sizeof(*mru->lists), 0);
 
        if (!mru->lists) {
                err = -ENOMEM;