Changes in kernel/generic/src/mm/slab.c [ab6f2507:7a0359b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/slab.c
rab6f2507 r7a0359b 612 612 cache->name = name; 613 613 614 if (align < sizeof( sysarg_t))615 align = sizeof( sysarg_t);614 if (align < sizeof(unative_t)) 615 align = sizeof(unative_t); 616 616 617 617 size = ALIGN_UP(size, align); … … 806 806 } 807 807 808 /** Go through all caches and reclaim what is possible */ 808 /** Go through all caches and reclaim what is possible 809 * 810 * Interrupts must be disabled before calling this function, 811 * otherwise memory allocation from interrupts can deadlock. 812 * 813 */ 809 814 size_t slab_reclaim(unsigned int flags) 810 815 { 811 irq_spinlock_lock(&slab_cache_lock, true);816 irq_spinlock_lock(&slab_cache_lock, false); 812 817 813 818 size_t frames = 0; … … 819 824 } 820 825 821 irq_spinlock_unlock(&slab_cache_lock, true);826 irq_spinlock_unlock(&slab_cache_lock, false); 822 827 823 828 return frames; … … 885 890 irq_spinlock_unlock(&slab_cache_lock, true); 886 891 887 printf("%-18s %8 zu %8u %8zu%8ld %8ld %8ld %-5s\n",892 printf("%-18s %8" PRIs " %8u %8" PRIs " %8ld %8ld %8ld %-5s\n", 888 893 name, size, (1 << order), objects, allocated_slabs, 889 894 cached_objs, allocated_objs,
Note:
See TracChangeset
for help on using the changeset viewer.