From patchwork Tue Mar 1 16:26:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel J Blueman X-Patchwork-Id: 599841 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p21GQmWB030158 for ; Tue, 1 Mar 2011 16:26:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756827Ab1CAQ0b (ORCPT ); Tue, 1 Mar 2011 11:26:31 -0500 Received: from mail-iw0-f174.google.com ([209.85.214.174]:51109 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756452Ab1CAQ0b (ORCPT ); Tue, 1 Mar 2011 11:26:31 -0500 Received: by iwn34 with SMTP id 34so4248187iwn.19 for ; Tue, 01 Mar 2011 08:26:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to:cc :content-type; bh=dy6nmMBkx6g2LVEsjE1YeMmPVVg8/MdN+/adnCrtaVY=; b=xNNS6/Yr8g0o97DhPFzuh+wYJuE/9q236+I9/krycfTBz+veS8JgIDB9iqUXuVVzZ9 AA8LO8Bxr5Uk7g4heW3xECb2D+poCpsymtVHzWKKUI1WrHdc1MQahd9OM3SFBpUORLcc 9PD3cmurCuTDHCcsfHGDfCsG+mR445klKBnHA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=ipcySeZ/N7VeMqMxlx2Q4I8sGJptsffy7WJHOe0V3o+WhDXn14rfAbEAFx3ma7LTZR nHOp/KKFyoaChNp6m0AhT2U/v6PRWpati2LmcL+6zJlDxEkvPhRSUGKwWGq60sBDK/Hc duIx7OJb+wiIcaNNxmd6M/PZphz2FMLjRYk+U= MIME-Version: 1.0 Received: by 10.231.13.197 with SMTP id d5mr6689695iba.6.1298996790258; Tue, 01 Mar 2011 08:26:30 -0800 (PST) Received: by 10.231.139.156 with HTTP; Tue, 1 Mar 2011 08:26:30 -0800 (PST) Date: Wed, 2 Mar 2011 00:26:30 +0800 Message-ID: Subject: [2.6.38-rc6, patch] mark some internal functions static... From: Daniel J Blueman To: Linux BTRFS Cc: Chris Mason , Josef Bacik , Linux Kernel Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 01 Mar 2011 16:26:49 +0000 (UTC) diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index b5baff0..5e49196 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -74,7 +74,7 @@ noinline void btrfs_set_path_blocking(struct btrfs_path *p) * retake all the spinlocks in the path. You can safely use NULL * for held */ -noinline void btrfs_clear_path_blocking(struct btrfs_path *p, +static noinline void btrfs_clear_path_blocking(struct btrfs_path *p, struct extent_buffer *held) { int i; diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index e1aa8d6..c48d699 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2279,7 +2279,7 @@ static int write_dev_supers(struct btrfs_device *device, return errors < i ? 0 : -1; } -int write_all_supers(struct btrfs_root *root, int max_mirrors) +static int write_all_supers(struct btrfs_root *root, int max_mirrors) { struct list_head *head; struct btrfs_device *dev; diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index f3c96fc..1961081 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -77,7 +77,7 @@ static int block_group_bits(struct btrfs_block_group_cache *cache, u64 bits) return (cache->flags & bits) == bits; } -void btrfs_get_block_group(struct btrfs_block_group_cache *cache) +static void btrfs_get_block_group(struct btrfs_block_group_cache *cache) { atomic_inc(&cache->count); } @@ -3576,7 +3576,7 @@ static void block_rsv_add_bytes(struct btrfs_block_rsv *block_rsv, spin_unlock(&block_rsv->lock); } -void block_rsv_release_bytes(struct btrfs_block_rsv *block_rsv, +static void block_rsv_release_bytes(struct btrfs_block_rsv *block_rsv, struct btrfs_block_rsv *dest, u64 num_bytes) { struct btrfs_space_info *space_info = block_rsv->space_info; diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index a039065..ec5015c 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -1371,7 +1371,7 @@ out: return ret; } -bool try_merge_free_space(struct btrfs_block_group_cache *block_group, +static bool try_merge_free_space(struct btrfs_block_group_cache *block_group, struct btrfs_free_space *info, bool update_stat) { struct btrfs_free_space *left_info; diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index be2d4f6..7b97854 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -2193,7 +2193,7 @@ static void get_block_group_info(struct list_head *groups_list, } } -long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg) +static long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg) { struct btrfs_ioctl_space_args space_args;