Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2999063ybx; Fri, 8 Nov 2019 12:29:33 -0800 (PST) X-Google-Smtp-Source: APXvYqx/vmU/+3XBdSQptALBaNBN/fMZ1npp+54U9ysDGQt83/BuZ5ZRHFJvHqhpyJeyrrS8UrR8 X-Received: by 2002:aa7:d642:: with SMTP id v2mr12402942edr.175.1573244973775; Fri, 08 Nov 2019 12:29:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573244973; cv=none; d=google.com; s=arc-20160816; b=J0iWyzsKfZcCu+o7gMEQ1AMDgW9NfWSUlcxL+vfwabZLhyq6Vr9IuBlV+h2S3s7fEF uAgb9lXDugM3W9r9/9rd147vizqTiEhBUb7jT17KVqBeWB9UBBmIb78RIc0Mnj653Lna V9iHi7W7BQQ/r+fEsYD5mD8TFR3sOsrySxUpMfslOGp4KVA2vtshOPD0DdSBOr8/Xwwt OPrp6cTjZJEsYjv3IFL13QgfL149SqY7vedKNRjs61D/huverYsxvkE225Pq5dyhc+z1 S9PGF3lCd77C1fK0WlQczDw3VSSDzdhqcYuOGaR38sQyVzxsPJvNMzoh0bN7mITa3Tt1 KtMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=15dhxqvKLNtBzHL2MRXUOP9aU5ugR1hW6xbRN2x4R5Q=; b=N1kb0/wEyZIh38d/1zoMR5XdifaVmWKkwUqtNqxbBb3GFG9yzk+sbYBOt8WPabsKMo UX/P7Qd5f0r8C5FIjtUntFIlmLQU3WV3ayl+VNIdu4vl7nJoFyQkJG69175b+5fn+SOA r2Lg/ma32bvXTWBtSxQiHV20NpEc/sjyIj3uIJ/dgTiwecUrwOg56rHAIHk5FhZvW91K dvL3oKouq5NrupR6qKRQW8638wsVGTjNPEaXCgcq4/zMKoYR2uhJjvCx/zhIjPdsJrrB 5xL7pouS1fhvNKlmxvWSRXeldlgaVUPe8QzsVW5ssB/ILA6Wa3mj4EOoOjGbK3UWolUa Ya2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=huKT36Wb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h15si4782705ejd.368.2019.11.08.12.29.10; Fri, 08 Nov 2019 12:29:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=huKT36Wb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730139AbfKHU15 (ORCPT + 99 others); Fri, 8 Nov 2019 15:27:57 -0500 Received: from alln-iport-6.cisco.com ([173.37.142.93]:29322 "EHLO alln-iport-6.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfKHU15 (ORCPT ); Fri, 8 Nov 2019 15:27:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=657; q=dns/txt; s=iport; t=1573244877; x=1574454477; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=z3ZF6AR2UoafXM7ZmOur+x1U88cUCcFAdL1NrGTKQu8=; b=huKT36WbLhEU5RcbAmxnJYlRor9cnpT/mMxbjrss2PX/ELzHjLOVifq/ XD4ER9Z8vGCIhO2VBiGFIVKKHa6eCgJff6972+FDwV7jIuIwCHfKxIA9V 1BPPjNi8avkF545G4w7Fd/6Yc0kOGLy0S3O+fLhus7F/xTuUYz1gefLtk Q=; X-IronPort-AV: E=Sophos;i="5.68,283,1569283200"; d="scan'208";a="375898045" Received: from alln-core-6.cisco.com ([173.36.13.139]) by alln-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 08 Nov 2019 20:27:56 +0000 Received: from zorba ([10.24.83.59]) by alln-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id xA8KRsA5016266 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 8 Nov 2019 20:27:56 GMT Date: Fri, 8 Nov 2019 12:27:54 -0800 From: Daniel Walker To: Andrew Morton Cc: Lasse Collin , Yu Sun , xe-linux-external@cisco.com, Daniel Walker , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] lib/xz: Fix XZ_DYNALLOC to avoid useless memory reallocations. Message-ID: <20191108202754.GG18744@zorba> References: <20191108200040.20259-2-danielwa@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191108200040.20259-2-danielwa@cisco.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.24.83.59, [10.24.83.59] X-Outbound-Node: alln-core-6.cisco.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 08, 2019 at 12:00:40PM -0800, Daniel Walker wrote: > From: Lasse Collin > > s->dict.allocated was initialized to 0 but never set after > a successful allocation, thus the code always thought that > the dictionary buffer has to be reallocated. > > For the original commit to xz-embedded.git, please refer to: > https://git.tukaani.org/?p=xz-embedded.git;a=commit;h=40d291b > > Signed-off-by: Yu Sun Yu made me aware that Lasse had sent this on Nov. 4. I would recommend you take that patch, and disregard this one. Cisco is using it and we would like to see it merged. Daniel