• Kent Overstreet's avatar
    bcachefs: Snapshot deletion fix · 7bd68c73
    Kent Overstreet authored
    When we delete a snapshot, we unlink the inode but we don't want to run
    the inode_rm path - the unlink path deletes the subvolume directly,
    which does everything we need. Also allowing the inode_rm path to run
    was getting us "missing subvolume" errors.
    
    There's still another bug with snapshot deletion: we need to make
    snapshot deletion a multi stage process, where we unlink the root
    dentry, then tear down the page cache, then delete the snapshot.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    7bd68c73
fs-common.c 12.4 KB