Skip to content
Commit 0e42f381 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix inode early destruction path



discard_new_inode() is the wrong interface to use when we need to free
an inode that was never inserted into the inode hash table; we can
bypass the whole iput() -> evict() path and replace it with
__destroy_inode(); kmem_cache_free() - this fixes a WARN_ON() about
I_NEW.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 85ab365f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment