From patchwork Mon Apr 11 15:40:06 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: 698491 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 p3BFeBAJ007557 for ; Mon, 11 Apr 2011 15:40:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752155Ab1DKPkH (ORCPT ); Mon, 11 Apr 2011 11:40:07 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:64277 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751995Ab1DKPkH (ORCPT ); Mon, 11 Apr 2011 11:40:07 -0400 Received: by iwn34 with SMTP id 34so5734736iwn.19 for ; Mon, 11 Apr 2011 08:40:06 -0700 (PDT) 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=NKbEPXLAYpuKp95ozhkqeWi9ZbXjE7qHUZ7T5MdI1A8=; b=oNMnNvkjrUoodWCThbAyse3QvZb9HgAypYENlDosfqGWyd5BmRUe6uWzHoZB6hnCq6 xY4LvYBIg8QsNqRdnN2O854h79pDIePq/2doLSl0I+3cx943HuDfhgYjWDexxldtzaCH LgLWQhAVuTUBCxXQvUS4xIO16J990UzAUIeGE= 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=GCwOiyuCixCvg/FNQg04aNnp6PMlduGMTLzVZJX9RO4RCcP8u5KnhDhF4lUGcRFY8V sIWBUNbv+GfpMd0CVkiqX1z20deGqL/yO1N+gmOtNTVj41AKf9fYlyISowGsmSwh9xbG ukc7JiugeNMED57D4SGwwPCVELely4LDR7bUM= MIME-Version: 1.0 Received: by 10.42.97.69 with SMTP id m5mr7964247icn.116.1302536406277; Mon, 11 Apr 2011 08:40:06 -0700 (PDT) Received: by 10.231.162.6 with HTTP; Mon, 11 Apr 2011 08:40:06 -0700 (PDT) Date: Mon, 11 Apr 2011 23:40:06 +0800 Message-ID: Subject: [PATCH] mark internal functions static From: Daniel J Blueman To: Chris Mason Cc: Linux BTRFS 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]); Mon, 11 Apr 2011 15:40:11 +0000 (UTC) Hi Chris, This didn't make it in before, so updating to 2.6.39-rc2 and resending: Prevent needless exporting of internal functions from compilation units by marking them static. Signed-off-by: Daniel J Blueman struct btrfs_ioctl_space_info space; diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 84d7ca1..6581b37 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 8f1d44b..59f2567 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2313,7 +2313,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 f619c3c..5394255 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -75,7 +75,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); } @@ -3586,7 +3586,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/inode.c b/fs/btrfs/inode.c index 6541339..6370184 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -5305,7 +5305,7 @@ out: return em; } -struct extent_map *btrfs_get_extent_fiemap(struct inode *inode, struct page *page, +static struct extent_map *btrfs_get_extent_fiemap(struct inode *inode, struct page *page, size_t pg_offset, u64 start, u64 len, int create) { diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index cfc264f..de76a6d 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -2281,7 +2281,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;