diff options
author | Omar Sandoval <osandov@fb.com> | 2018-05-11 13:13:35 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 18:23:51 +0200 |
commit | c08db7d8d295a4f3a10faaca376de011afff7950 (patch) | |
tree | fb80d9263ef9e7313ff310f900e2783ba9b47124 /Kbuild | |
parent | 05a5bd7c4decf828f79b62863e520c9ff86eef72 (diff) |
Btrfs: don't return ino to ino cache if inode item removal fails
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: 581bb050941b ("Btrfs: Cache free inode numbers in memory")
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions