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
  • include
  • linux
  • shrinker.h
Find file BlameHistoryPermalink
  • T.J. Mercier's avatar
    mm: shrinkers: add missing includes for undeclared types · b7217a0b
    T.J. Mercier authored Nov 14, 2022
    The shrinker.h header depends on a user including other headers before it
    for types used by shrinker.h.  Fix this by including the appropriate
    headers in shrinker.h.
    
    ./include/linux/shrinker.h:13:9: error: unknown type name `gfp_t'
       13 |         gfp_t gfp_mask;
          |         ^~~~~
    ./include/linux/shrinker.h:71:26: error: field `list' has incomplete type
       71 |         struct list_head list;
          |                          ^~~~
    ./include/linux/shrinker.h:82:9: error: unknown type name `atomic_long_t'
       82 |         atomic_long_t *nr_deferred;
          |
    
    Link: https://lkml.kernel.org/r/20221114235949.201749-1-tjmercier@google.com
    Fixes: 83aeeada ("vmscan: use atomic-long for shrinker batching")
    Fixes: b0d40c92
    
     ("superblock: introduce per-sb cache shrinker infrastructure")
    Signed-off-by: default avatarT.J. Mercier <tjmercier@google.com>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Cc: Dave Chinner <dchinner@redhat.com>
    Cc: Konstantin Khlebnikov <khlebnikov@openvz.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    b7217a0b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7