From patchwork Mon Jun 16 12:14:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Manana X-Patchwork-Id: 4357961 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B757ABEEAA for ; Mon, 16 Jun 2014 11:21:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F2897201E4 for ; Mon, 16 Jun 2014 11:21:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 353F020166 for ; Mon, 16 Jun 2014 11:21:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753601AbaFPLVJ (ORCPT ); Mon, 16 Jun 2014 07:21:09 -0400 Received: from mail-we0-f180.google.com ([74.125.82.180]:65453 "EHLO mail-we0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751320AbaFPLVH (ORCPT ); Mon, 16 Jun 2014 07:21:07 -0400 Received: by mail-we0-f180.google.com with SMTP id x48so5533001wes.11 for ; Mon, 16 Jun 2014 04:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=rUbuw2fFsiR+NysTu+tdkLPmQABZZ97+ndxUKLUGuB4=; b=yFjnvd+Cw1t32lGY7tiPAK7KEdZrUhTANaAR3Lz8hPgvMRbYcgfG8hYGi8D0F+47+Y M+bKPBE2RR5wEOkpyjSHLDR2hfNYOF5E2euCQR5qu3Tp+8hJw6ub3aa9RBwknbwSw/PW wF/5r0hQhfVoSid1XRc5YNURQ3O8IRFdNln5XrdCrMbhL6yLzcW38AVOJOdNobRiIPGK MDO0Hvi64zVB7YR0QvsmDn/ID8e2hdE1EwIycq1xSESNOiuansQJFkH3wyc5X0gCqRKw VbS6rje492ZPtDBu7EZYt7W9ECjFhtNL0gDrpaGWv9T9/eqbOCGgL7tLCUewkdt7NGGc AvzQ== X-Received: by 10.194.86.164 with SMTP id q4mr3131527wjz.88.1402917665870; Mon, 16 Jun 2014 04:21:05 -0700 (PDT) Received: from debian-vm3.lan ([81.193.61.209]) by mx.google.com with ESMTPSA id am10sm18275333wjc.45.2014.06.16.04.21.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Jun 2014 04:21:05 -0700 (PDT) From: Filipe David Borba Manana To: linux-btrfs@vger.kernel.org Cc: Filipe David Borba Manana Subject: [PATCH] Btrfs: remove unused wait queue in struct extent_buffer Date: Mon, 16 Jun 2014 13:14:25 +0100 Message-Id: <1402920865-3120-1-git-send-email-fdmanana@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The lock_wq wait queue is not used anywhere, therefore just remove it. On a x86_64 system, this reduced sizeof(struct extent_buffer) from 320 bytes down to 296 bytes, which means a 4Kb page can now be used for 13 extent buffers instead of 12. Signed-off-by: Filipe David Borba Manana --- fs/btrfs/extent_io.h | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 8b63f2d..dbbea4f 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -158,7 +158,6 @@ struct extent_buffer { * to unlock */ wait_queue_head_t read_lock_wq; - wait_queue_head_t lock_wq; struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; #ifdef CONFIG_BTRFS_DEBUG struct list_head leak_list;