• Kent Overstreet's avatar
    bcachefs: bch2_inode_or_descendents_is_open() · 9d861787
    Kent Overstreet authored
    fsck can now correctly check if inodes in interior snapshot nodes are
    open/in use.
    
    - Tweak the vfs inode rhashtable so that the subvolume ID isn't hashed,
      meaning inums in different subvolumes will hash to the same slot. Note
      that this is a hack, and will cause problems if anyone ever has the
      same file in many different snapshots open all at the same time.
    
    - Then check if any of those subvolumes is a descendent of the snapshot
      ID being checked
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    9d861787
fsck.c 76.6 KB