Re: [PATCH v3 07/11] Btrfs: don't return ino to ino cache if inode item removal fails

2018-05-11 Thread Josef Bacik
On Fri, May 11, 2018 at 12:56:12AM -0700, Omar Sandoval wrote: > From: Omar Sandoval > > In btrfs_evict_inode(), if btrfs_truncate_inode_items() fails, the inode > item will still be in the tree but we still return the ino to the ino > cache. That will blow up later when someone

[PATCH v3 07/11] Btrfs: don't return ino to ino cache if inode item removal fails

2018-05-11 Thread Omar Sandoval
From: Omar Sandoval In btrfs_evict_inode(), if btrfs_truncate_inode_items() fails, the inode item will still be in the tree but we still return the ino to the ino cache. That will blow up later when someone tries to allocate that ino, so don't return it to the cache. Fixes: