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
  • include
  • linux
  • buffer_head.h
Find file BlameHistoryPermalink
  • Matthew Wilcox (Oracle)'s avatar
    buffer: Make bh_offset() work for compound pages · f94cf220
    Matthew Wilcox (Oracle) authored Sep 07, 2023
    If the buffer pointed to by the buffer_head is part of a compound page,
    bh_offset() assumes that b_page is the precise page that contains
    the data.  A recent change to jbd2 inadvertently violated that assumption.
    
    By using page_size(), we support both b_page being set to the head page
    (as page_size() will return the size of the entire folio) and the precise
    page (as it will return PAGE_SIZE for a tail page).
    
    Fixes: 8147c4c4
    
     ("jbd2: use a folio in jbd2_journal_write_metadata_buffer()")
    Reported-by: default avatarZorro Lang <zlang@kernel.org>
    Tested-by: default avatarRitesh Harjani (IBM) <ritesh.list@gmail.com>
    Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
    f94cf220
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7