Skip to contentSkip to conversation

dqcache receives uneven shrink_caches priority

PATCH New Josh MacDonald 1 participant 1 message Jan 28, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dqcache receives uneven shrink_caches priority

It looks like the vmscan shrink_caches() function applies an uneven priority for the call to shrink_dqcache_memory(). Instead of passing the 'priority' argument as with the dcache and icache, dqcache always receives the lowest (default) priority. This seems unjustified...

-josh

diff -cr mm.2.5.2/vmscan.c mm/vmscan.c
*** mm.2.5.2/vmscan.c Mon Jan 28 18:56:38 2002
--- mm/vmscan.c Mon Jan 28 18:56:50 2002
***************
*** 578,584 ****
shrink_dcache_memory(priority, gfp_mask);
shrink_icache_memory(priority, gfp_mask);
#ifdef CONFIG_QUOTA
! shrink_dqcache_memory(DEF_PRIORITY, gfp_mask);
#endif

return nr_pages;
--- 578,584 ----
shrink_dcache_memory(priority, gfp_mask);
shrink_icache_memory(priority, gfp_mask);
#ifdef CONFIG_QUOTA
! shrink_dqcache_memory(priority, gfp_mask);
#endif

return nr_pages;

Signature · 3 lines
PRCS version control system    http://sourceforge.net/projects/prcs
Xdelta storage & transport     http://sourceforge.net/projects/xdelta
Need a concurrent skip list?   http://sourceforge.net/projects/skiplist