On Wed, Dec 12, 2018 at 03:14:17PM +0100, Johannes Thumshirn wrote: > err holds the return value of either btrfs_del_root_ref() or > btrfs_del_inode_ref() but it hasn't been checked since it's > introduction with commit fe66a05a0679 (Btrfs: improve error handling > for btrfs_insert_dir_item callers) in 2012. > > To quote David: > > "If the error handling in the error handling fails, there's not much left to do > and the abort either happened earlier in the callees or is necessary here." > > So if one of btrfs_del_root_ref() or btrfs_del_inode_ref() failed, abort the > transaction. > > Link: https://lore.kernel.org/linux-btrfs/20181126183759.GJ2842@xxxxxxxxxxxxx/ > Signed-off-by: Johannes Thumshirn <jthumshirn@xxxxxxx> Thanks. I've updated the changelog a bit follwing the discussion we had under the previous iterations. Reviewed-by: David Sterba <dsterba@xxxxxxxx>
