Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-rt
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • David Runge
  • linux-rt
  • Repository

Switch branch/tag
  • linux-rt
  • fs
  • ext4
  • super.c
Find file BlameHistoryPermalink
  • Jan Kara's avatar
    ext4: fix e2fsprogs checksum failure for mounted filesystem · f50c4114
    Jan Kara authored Aug 12, 2021
    commit b2bbb92f upstream.
    
    Commit 81414b4d ("ext4: remove redundant sb checksum
    recomputation") removed checksum recalculation after updating
    superblock free space / inode counters in ext4_fill_super() based on
    the fact that we will recalculate the checksum on superblock
    writeout.
    
    That is correct assumption but until the writeout happens (which can
    take a long time) the checksum is incorrect in the buffer cache and if
    programs such as tune2fs or resize2fs is called shortly after a file
    system is mounted can fail.  So return back the checksum recalculation
    and add a comment explaining why.
    
    Fixes: 81414b4d
    
     ("ext4: remove redundant sb checksum recomputation")
    Cc: stable@kernel.org
    Reported-by: default avatarBoyang Xue <bxue@redhat.com>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    Link: https://lore.kernel.org/r/20210812124737.21981-1-jack@suse.cz
    
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    f50c4114

Replace super.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.