Re: [PATCH v4 03/12] Btrfs: don't BUG_ON() in btrfs_truncate_inode_items()

2018-05-17 Thread David Sterba
On Fri, May 11, 2018 at 01:13:31PM -0700, Omar Sandoval wrote: > From: Omar Sandoval > > btrfs_free_extent() can fail because of ENOMEM. There's no reason to > panic here, we can just abort the transaction. > > Fixes: f4b9aa8d3b87 ("btrfs_truncate") > Reviewed-by: Nikolay

[PATCH v4 03/12] Btrfs: don't BUG_ON() in btrfs_truncate_inode_items()

2018-05-11 Thread Omar Sandoval
From: Omar Sandoval btrfs_free_extent() can fail because of ENOMEM. There's no reason to panic here, we can just abort the transaction. Fixes: f4b9aa8d3b87 ("btrfs_truncate") Reviewed-by: Nikolay Borisov Signed-off-by: Omar Sandoval ---