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
  • buffer.c
Find file BlameHistoryPermalink
  • Matthew Wilcox (Oracle)'s avatar
    buffer: hoist GFP flags from grow_dev_page() to __getblk_gfp() · 3ed65f04
    Matthew Wilcox (Oracle) authored Sep 14, 2023
    grow_dev_page() is only called by grow_buffers().  grow_buffers() is only
    called by __getblk_slow() and __getblk_slow() is only called from
    __getblk_gfp(), so it is safe to move the GFP flags setting all the way
    up.  With that done, add a new bdev_getblk() entry point that leaves the
    GFP flags the way the caller specified them.
    
    [willy@infradead.org: fix grow_dev_page() error handling]
      Link: https://lkml.kernel.org/r/ZRREEIwqiy5DijKB@casper.infradead.org
    Link: https://lkml.kernel.org/r/20230914150011.843330-3-willy@infradead.org
    
    
    Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
    Cc: Hui Zhu <teawater@antgroup.com>
    Cc: Dan Carpenter <dan.carpenter@linaro.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    3ed65f04
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7