Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • fs
  • mbcache2.c
Find file BlameHistoryPermalink
  • Jan Kara's avatar
    mbcache2: limit cache size · 1bcae5db
    Jan Kara authored Nov 16, 2017
    
    
    So far number of entries in mbcache is limited only by the pressure from
    the shrinker. Since too many entries degrade the hash table and
    generally we expect that caching more entries has diminishing returns,
    limit number of entries the same way as in the old mbcache to 16 * hash
    table size.
    
    Once we exceed the desired maximum number of entries, we schedule a
    backround work to reclaim entries. If the background work cannot keep up
    and the number of entries exceeds two times the desired maximum, we
    reclaim some entries directly when allocating a new entry.
    
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    (cherry picked from commit c2f3140f
    
    )
    CVE-2015-8952
    Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
    Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
    Acked-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
    Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
    1bcae5db
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7