From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLWIW-0005Xl-0a for qemu-devel@nongnu.org; Wed, 23 May 2018 12:07:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLWIS-0005f5-Jg for qemu-devel@nongnu.org; Wed, 23 May 2018 12:07:32 -0400 Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 23 May 2018 18:07:19 +0200 Message-Id: <20180523160721.14018-1-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v2 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 v1->v2: free the data... 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