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
  • block_dev.c
Find file BlameHistoryPermalink
  • Christoph Hellwig's avatar
    block: don't clear bd_invalidated in check_disk_size_change · 6540fbf6
    Christoph Hellwig authored Sep 01, 2020
    
    
    bd_invalidated is set by check_disk_change or in add_disk to initiate a
    partition scan.  Move it from check_disk_size_change which is called
    from both revalidate_disk() and bdev_disk_changed() to only the latter,
    as that is what is called from the block device open code (and nbd) to
    deal with the bd_invalidated event.  revalidate_disk() on the other hand
    is mostly used to propagate a size update from the gendisk to the block
    device, which is entirely unrelated.
    
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
    Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    6540fbf6
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7