From patchwork Wed Aug 23 06:46:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 9916699 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EBDA0600C5 for ; Wed, 23 Aug 2017 06:46:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE0812858A for ; Wed, 23 Aug 2017 06:46:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2CED2896B; Wed, 23 Aug 2017 06:46:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E8452858A for ; Wed, 23 Aug 2017 06:46:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753404AbdHWGqU (ORCPT ); Wed, 23 Aug 2017 02:46:20 -0400 Received: from mail-pg0-f54.google.com ([74.125.83.54]:34459 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753238AbdHWGqS (ORCPT ); Wed, 23 Aug 2017 02:46:18 -0400 Received: by mail-pg0-f54.google.com with SMTP id s14so4042321pgs.1 for ; Tue, 22 Aug 2017 23:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=FJSBebYWlRxjkKE0Haq+cqDFq4dxyL1GgLSE6y95cJ4=; b=nV36sbkOVsZiXLIi1m4sSGjBnmZ41BnCCfkvTGcJy+4kS4zJhFZbQ01p6KqelR3DEL eiNcTe92wRXYZseU57RX/PCsVBapdPB4usuHTFlDgrpAyBOYqA0edTM6KjtJsJ0UoJgQ oM0R2+34JUEvFXiv39ATPFZFjkBStqEE462vaNp7H9ttQK/wGkbwU0q/s1sBqOoR5WSo fPbowYrbt+en1m3fZc5bWco02emyvOcwfuThgKcn8ASQsFRLWa3hTAjMHTju8p8bUGIg R7jkX21ZgToHRmd2cFZRD5GUze6LHDLwtWRPOPoXd4BoKviLcutM8y0XvK/PJABeH3Lw fgog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=FJSBebYWlRxjkKE0Haq+cqDFq4dxyL1GgLSE6y95cJ4=; b=ffPf9sIYIzV4On406ehJB1mTvjjE74gUwXNXvdtGFmb05A888xkvGpuRK37gN5q6t7 pjfWAPAsqvmn1yoPcZG20O8gubmOzZcVZ2UfieI9u4JD4xCxyA6wDGKY/KE7qMiVsWcF mWz8f9rrf2ZkDJwaa/sQAS+gJoYU0xRMeFkfYAPPcK/cK5Ad4PPw3XOCn+zSGTBtmqyq 0VxU35A7yUmqTE5Qruv10lls7UhoUdI8mK4xXINCYMXUxV4uLOF13+YKOMUuWtwcPWas AyUynzG+AhvMFmvjDYo4jIxP+uFXXmfLXRl0TbAdrRbTH7PWufLuCKNlmZHh0ppw+wA1 X2Uw== X-Gm-Message-State: AHYfb5i+n/x/sohf3YENZgFRina7kAFDt/SUlfSWb9YyCHrQL6L+NnLe rrWo34fGgqqSum2qKqMVhQ== X-Received: by 10.99.96.14 with SMTP id u14mr1670396pgb.221.1503470777808; Tue, 22 Aug 2017 23:46:17 -0700 (PDT) Received: from localhost.localdomain ([2601:602:8801:8110:e6a7:a0ff:fe0b:c9a8]) by smtp.gmail.com with ESMTPSA id n184sm1194749pga.89.2017.08.22.23.46.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Aug 2017 23:46:17 -0700 (PDT) From: Omar Sandoval To: linux-btrfs@vger.kernel.org Cc: kernel-team@fb.com Subject: [PATCH 6/7] Btrfs: make some volumes.c functions static Date: Tue, 22 Aug 2017 23:46:04 -0700 Message-Id: X-Mailer: git-send-email 2.14.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Omar Sandoval These aren't used outside of volumes.c. Signed-off-by: Omar Sandoval --- fs/btrfs/volumes.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 9b7a8e6257ee..9f2ed74a2c81 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -594,7 +594,7 @@ static void pending_bios_fn(struct btrfs_work *work) } -void btrfs_free_stale_device(struct btrfs_device *cur_dev) +static void btrfs_free_stale_device(struct btrfs_device *cur_dev) { struct btrfs_fs_devices *fs_devs; struct btrfs_device *dev; @@ -1110,14 +1110,15 @@ int btrfs_open_devices(struct btrfs_fs_devices *fs_devices, return ret; } -void btrfs_release_disk_super(struct page *page) +static void btrfs_release_disk_super(struct page *page) { kunmap(page); put_page(page); } -int btrfs_read_disk_super(struct block_device *bdev, u64 bytenr, - struct page **page, struct btrfs_super_block **disk_super) +static int btrfs_read_disk_super(struct block_device *bdev, u64 bytenr, + struct page **page, + struct btrfs_super_block **disk_super) { void *p; pgoff_t index; @@ -1860,8 +1861,9 @@ static int btrfs_check_raid_min_devices(struct btrfs_fs_info *fs_info, return 0; } -struct btrfs_device *btrfs_find_next_active_device(struct btrfs_fs_devices *fs_devs, - struct btrfs_device *device) +static struct btrfs_device * +btrfs_find_next_active_device(struct btrfs_fs_devices *fs_devs, + struct btrfs_device *device) { struct btrfs_device *next_device;