• Linus Torvalds's avatar
    Merge tag 'bcachefs-2024-10-14' of git://evilpiepirate.org/bcachefs · bdc72765
    Linus Torvalds authored
    Pull bcachefs fixes from Kent Overstreet:
    
     - New metadata version inode_has_child_snapshots
    
       This fixes bugs with handling of unlinked inodes + snapshots, in
       particular when an inode is reattached after taking a snapshot;
       deleted inodes now get correctly cleaned up across snapshots.
    
     - Disk accounting rewrite fixes
         - validation fixes for when a device has been removed
         - fix journal replay failing with "journal_reclaim_would_deadlock"
    
     - Some more small fixes for erasure coding + device removal
    
     - Assorted small syzbot fixes
    
    * tag 'bcachefs-2024-10-14' of git://evilpiepirate.org/bcachefs: (27 commits)
      bcachefs: Fix sysfs warning in fstests generic/730,731
      bcachefs: Handle race between stripe reuse, invalidate_stripe_to_dev
      bcachefs: Fix kasan splat in new_stripe_alloc_buckets()
      bcachefs: Add missing validation for bch_stripe.csum_granularity_bits
      bcachefs: Fix missing bounds checks in bch2_alloc_read()
      bcachefs: fix uaf in bch2_dio_write_done()
      bcachefs: Improve check_snapshot_exists()
      bcachefs: Fix bkey_nocow_lock()
      bcachefs: Fix accounting replay flags
      bcachefs: Fix invalid shift in member_to_text()
      bcachefs: Fix bch2_have_enough_devs() for BCH_SB_MEMBER_INVALID
      bcachefs: __wait_for_freeing_inode: Switch to wait_bit_queue_entry
      bcachefs: Check if stuck in journal_res_get()
      closures: Add closure_wait_event_timeout()
      bcachefs: Fix state lock involved deadlock
      bcachefs: Fix NULL pointer dereference in bch2_opt_to_text
      bcachefs: Release transaction before wake up
      bcachefs: add check for btree id against max in try read node
      bcachefs: Disk accounting device validation fixes
      bcachefs: bch2_inode_or_descendents_is_open()
      ...
    bdc72765
inode.c 35.8 KB