From: Filipe Manana Date: Tue, 7 Apr 2020 10:38:58 +0000 (+0100) Subject: btrfs: remove pointless assertion on reclaim_size counter X-Git-Tag: v5.8-rc1~182^2~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d9faa5a8aaaf4a0559be46cccdbed7dbb10bad0;p=thirdparty%2Fkernel%2Flinux.git btrfs: remove pointless assertion on reclaim_size counter The reclaim_size counter of a space_info object is unsigned. So its value can never be negative, it's pointless to have an assertion that checks its value is >= 0, therefore remove it. Reviewed-by: Nikolay Borisov Signed-off-by: Filipe Manana Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/space-info.c b/fs/btrfs/space-info.c index 3cb8423c20650..41ee886337696 100644 --- a/fs/btrfs/space-info.c +++ b/fs/btrfs/space-info.c @@ -1262,7 +1262,6 @@ static int __reserve_metadata_bytes(struct btrfs_fs_info *fs_info, * the list and we will do our own flushing further down. */ if (ret && flush != BTRFS_RESERVE_NO_FLUSH) { - ASSERT(space_info->reclaim_size >= 0); ticket.bytes = orig_bytes; ticket.error = 0; space_info->reclaim_size += ticket.bytes;