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
  • linux
  • fs
  • afs
  • write.c
Find file BlameHistoryPermalink
  • David Howells's avatar
    afs: Fix to take ref on page when PG_private is set · fa04a40b
    David Howells authored Oct 21, 2020
    Fix afs to take a ref on a page when it sets PG_private on it and to drop
    the ref when removing the flag.
    
    Note that in afs_write_begin(), a lot of the time, PG_private is already
    set on a page to which we're going to add some data.  In such a case, we
    leave the bit set and mustn't increment the page count.
    
    As suggested by Matthew Wilcox, use attach/detach_page_private() where
    possible.
    
    Fixes: 31143d5d
    
     ("AFS: implement basic file write support")
    Reported-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    Reviewed-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
    fa04a40b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7