From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLDcg-0001fK-B3 for qemu-devel@nongnu.org; Tue, 22 May 2018 16:11:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLDcd-0002vc-5t for qemu-devel@nongnu.org; Tue, 22 May 2018 16:11:06 -0400 Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 22 May 2018 22:10:54 +0200 Message-Id: <20180522201056.1442-1-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] sheepdog: remove huge BSS object List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jcody@redhat.com, qemu-block@nongnu.org block/sheepdog.o has a 4M static variable that is 90% of QEMU's whole .bss section. Since it doesn't really have to be static, we can just use a heap allocated block. We can actually make it smaller too. :) Patch 1 is a related cleanup since we're touching that area of the code. Paolo Paolo Bonzini (2): sheepdog: cleanup repeated expression sheepdog: remove huge BSS object block/sheepdog.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) -- 2.17.0