public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Josh MacDonald <jmacd@CS.Berkeley.EDU>
To: linux-kernel@vger.kernel.org
Cc: reiserfs-dev@namesys.com
Subject: [patch] dqcache receives uneven shrink_caches priority
Date: Mon, 28 Jan 2002 08:10:17 -0800	[thread overview]
Message-ID: <20020128081017.B6578@helen.CS.Berkeley.EDU> (raw)

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;


-- 
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

                 reply	other threads:[~2002-01-28 16:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020128081017.B6578@helen.CS.Berkeley.EDU \
    --to=jmacd@cs.berkeley.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reiserfs-dev@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox