All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>,
	Edward Shishkin <edward@namesys.com>
Cc: linux-kernel@vger.kernel.org, reiserfs-devel@vger.kernel.org
Subject: [-mm patch] fs/reiser4/plugin/: make 3 functions static
Date: Tue, 14 Aug 2007 23:21:52 +0200	[thread overview]
Message-ID: <20070814212152.GT18945@stusta.de> (raw)
In-Reply-To: <20070731230932.a9459617.akpm@linux-foundation.org>

On Tue, Jul 31, 2007 at 11:09:32PM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.23-rc1-mm1:
>...
> +reiser4-cryptcompress-misc-fixups.patch
>...
>  reiser4 updates
>...

This patch makes the following needlessly global functions static:
- file/cryptcompress.c: __put_page_cluster()
- file/cryptcompress.c: put_hint_cluster()
- item/ctail.c: ctail_read_disk_cluster()

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---

 fs/reiser4/plugin/cluster.h            |    4 ----
 fs/reiser4/plugin/file/cryptcompress.c |    8 ++++----
 fs/reiser4/plugin/file/cryptcompress.h |    2 --
 fs/reiser4/plugin/item/ctail.c         |    5 +++--
 4 files changed, 7 insertions(+), 12 deletions(-)

dcbd29fcda0d6143ab0ec5f91e347d6e540f27bd 
diff --git a/fs/reiser4/plugin/cluster.h b/fs/reiser4/plugin/cluster.h
index 7856074..af7a305 100644
--- a/fs/reiser4/plugin/cluster.h
+++ b/fs/reiser4/plugin/cluster.h
@@ -326,8 +326,6 @@ int reiser4_deflate_cluster(struct cluster_handle *, struct inode *);
 void truncate_complete_page_cluster(struct inode *inode, cloff_t start,
 					 int even_cows);
 void invalidate_hint_cluster(struct cluster_handle * clust);
-void put_hint_cluster(struct cluster_handle * clust, struct inode *inode,
-		      znode_lock_mode mode);
 int get_disk_cluster_locked(struct cluster_handle * clust, struct inode * inode,
 			    znode_lock_mode lock_mode);
 void reset_cluster_params(struct cluster_handle * clust);
@@ -335,8 +333,6 @@ int set_cluster_by_page(struct cluster_handle * clust, struct page * page,
 			int count);
 int prepare_page_cluster(struct inode *inode, struct cluster_handle * clust,
 			 rw_op rw);
-void __put_page_cluster(int from, int to, struct page ** pages,
-			struct inode * inode);
 void put_page_cluster(struct cluster_handle * clust,
 		      struct inode  * inode, rw_op rw);
 void put_cluster_handle(struct cluster_handle * clust);
diff --git a/fs/reiser4/plugin/file/cryptcompress.c b/fs/reiser4/plugin/file/cryptcompress.c
index f0f0bee..9724d64 100644
--- a/fs/reiser4/plugin/file/cryptcompress.c
+++ b/fs/reiser4/plugin/file/cryptcompress.c
@@ -1378,8 +1378,8 @@ static void truncate_page_cluster_range(struct inode * inode,
 }
 
 /* Put @count pages starting from @from offset */
-void __put_page_cluster(int from, int count,
-			struct page ** pages, struct inode  * inode)
+static void __put_page_cluster(int from, int count,
+			       struct page ** pages, struct inode  * inode)
 {
 	int i;
 	assert("edward-1468", pages != NULL);
@@ -1975,8 +1975,8 @@ void invalidate_hint_cluster(struct cluster_handle * clust)
 	hint_clr_valid(clust->hint);
 }
 
-void put_hint_cluster(struct cluster_handle * clust, struct inode *inode,
-		      znode_lock_mode mode)
+static void put_hint_cluster(struct cluster_handle * clust,
+			     struct inode *inode, znode_lock_mode mode)
 {
 	assert("edward-1286", clust != NULL);
 	assert("edward-1287", clust->hint != NULL);
diff --git a/fs/reiser4/plugin/file/cryptcompress.h b/fs/reiser4/plugin/file/cryptcompress.h
index 5984e3c..117d377 100644
--- a/fs/reiser4/plugin/file/cryptcompress.h
+++ b/fs/reiser4/plugin/file/cryptcompress.h
@@ -530,8 +530,6 @@ int equal_to_rdk(znode *, const reiser4_key *);
 int goto_right_neighbor(coord_t *, lock_handle *);
 int cryptcompress_inode_ok(struct inode *inode);
 int coord_is_unprepped_ctail(const coord_t * coord);
-extern int ctail_read_disk_cluster (struct cluster_handle *, struct inode *,
-				    struct page *, znode_lock_mode mode);
 extern int do_readpage_ctail(struct inode *, struct cluster_handle *,
 			     struct page * page, znode_lock_mode mode);
 extern int ctail_insert_unprepped_cluster(struct cluster_handle * clust,
diff --git a/fs/reiser4/plugin/item/ctail.c b/fs/reiser4/plugin/item/ctail.c
index a931392..33ab44a 100644
--- a/fs/reiser4/plugin/item/ctail.c
+++ b/fs/reiser4/plugin/item/ctail.c
@@ -551,8 +551,9 @@ int read_ctail(struct file *file UNUSED_ARG, flow_t * f, hint_t * hint)
  * Prepare transform stream with plain text for page
  * @page taking into account synchronization issues.
  */
-int ctail_read_disk_cluster(struct cluster_handle * clust, struct inode * inode,
-			    struct page * page, znode_lock_mode mode)
+static int ctail_read_disk_cluster(struct cluster_handle * clust,
+				   struct inode * inode, struct page * page,
+				   znode_lock_mode mode)
 {
 	int result;
 


      parent reply	other threads:[~2007-08-14 21:21 UTC|newest]

Thread overview: 126+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-01  6:09 2.6.23-rc1-mm2 Andrew Morton
2007-08-01  6:25 ` 2.6.23-rc1-mm2 Paul Mundt
2007-08-01  7:58   ` 2.6.23-rc1-mm2 Mike Frysinger
2007-08-01  8:10     ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01 13:45       ` 2.6.23-rc1-mm2 Christoph Hellwig
2007-08-01 13:57         ` 2.6.23-rc1-mm2 Jason Wessel
2007-08-01  8:15     ` 2.6.23-rc1-mm2 Paul Mundt
2007-08-01  9:04       ` 2.6.23-rc1-mm2 Mike Frysinger
2007-08-01 12:22   ` 2.6.23-rc1-mm2 Jason Wessel
2007-08-01  7:36 ` 2.6.23-rc1-mm2 (vm-dont-run-touch_buffer-during-buffercache-lookups.patch) Eric St-Laurent
2007-08-01  7:46   ` Andrew Morton
2007-08-01  8:04     ` Eric St-Laurent
2007-08-01  8:30       ` Andrew Morton
2007-08-01  8:02 ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-01  8:02   ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-01  8:13   ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01  8:13     ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01  8:16     ` 2.6.23-rc1-mm2 Ingo Molnar
2007-08-01  8:16       ` 2.6.23-rc1-mm2 Ingo Molnar
2007-08-01 10:23     ` 2.6.23-rc1-mm2 Jiri Kosina
2007-08-02  9:47       ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-02 14:20         ` [linux-usb-devel] 2.6.23-rc1-mm2 Alan Stern
2007-08-02 14:26           ` Jiri Kosina
2007-08-02 14:32           ` Mariusz Kozlowski
2007-08-01 10:32   ` 2.6.23-rc1-mm2 Paul Mackerras
2007-08-01 10:32     ` 2.6.23-rc1-mm2 Paul Mackerras
2007-08-02 10:14     ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-02 10:14       ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-03  9:39       ` 2.6.23-rc1-mm2 Kumar Gala
2007-08-03  9:39         ` 2.6.23-rc1-mm2 Kumar Gala
2007-08-06 19:12         ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-06 19:12           ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-06 19:10       ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-06 19:10         ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-01 16:36   ` 2.6.23-rc1-mm2 Greg KH
2007-08-01 16:36     ` 2.6.23-rc1-mm2 Greg KH
2007-08-06 19:08   ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-06 19:08     ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-06 19:34     ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-06 19:34       ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-06 21:25       ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-06 21:25         ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-06 22:34         ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-06 22:34           ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-06 23:12           ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-06 23:12             ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-01  9:34 ` [PATCH] prevent SSB compilation on s390 part 2 Heiko Carstens
2007-08-01 12:24   ` John W. Linville
2007-08-01 14:43   ` Heiko Carstens
2007-08-01 14:54     ` Michael Buesch
2007-08-01 10:33 ` unionfs compile error ( Re: 2.6.23-rc1-mm2 ) Gabriel C
2007-08-01 17:22   ` Andrew Morton
2007-08-01 17:27     ` Josef Sipek
2007-08-02 16:29       ` Erez Zadok
2007-08-01 17:35     ` Gabriel C
2007-08-01 10:56 ` 2.6.23-rc1-mm2 Gabriel C
2007-08-01 17:26   ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01 17:39     ` 2.6.23-rc1-mm2 Gabriel C
2007-08-01 11:16 ` [PATCH] fix slown down printk on boot compile error Heiko Carstens
2007-08-01 16:32   ` Randy Dunlap
2007-08-01 13:01 ` drivers/scsi/advansys.c compile error ( Re: 2.6.23-rc1-mm2 ) Gabriel C
2007-08-01 13:39   ` [PATCH] drivers/scsi/advansys.c: fix advansys_board_found compile error Eugene Teo
2007-08-01 13:54     ` Gabriel C
2007-08-01 13:55     ` Matthew Wilcox
2007-08-01 14:27       ` Gabriel C
2007-08-01 14:32         ` Matthew Wilcox
2007-08-01 14:46           ` Gabriel C
2007-08-01 14:23 ` [PATCH -mm] Fix defined but not used warning in drivers/kvm/vmx.c Gabriel C
2007-08-01 18:35   ` Avi Kivity
2007-08-01 15:19 ` [PATCH -mm] Fix a section mismatch warning Gabriel C
2007-08-01 20:13 ` 2.6.23-rc1-mm2 (checks-for-80wire-cable-use-in-pata_via) Laurent Riffard
2007-08-01 20:30 ` 2.6.23-rc1-mm2 Valdis.Kletnieks
2007-08-01 20:40   ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01 20:52     ` 2.6.23-rc1-mm2 Torsten Kaiser
2007-08-01 21:17       ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01 21:17         ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01 23:40       ` 2.6.23-rc1-mm2 Mel Gorman
2007-08-02  4:38         ` 2.6.23-rc1-mm2 Torsten Kaiser
2007-08-02 14:01         ` 2.6.23-rc1-mm2 Andy Whitcroft
2007-08-02 17:44           ` 2.6.23-rc1-mm2 Torsten Kaiser
2007-08-01 23:40 ` INOTIFY=n , AUDIT*=y compile error Gabriel C
2007-08-01 23:59 ` [PATCH -mm] linux-audit list is subscribers-only Gabriel C
2007-08-02  1:30   ` Randy Dunlap
2007-08-02 13:11 ` [PATCH -mm] Fix section mismatch warnings in sound/pci/hda/ Gabriel C
2007-08-02 13:24   ` Takashi Iwai
2007-08-02 16:32     ` Sam Ravnborg
2007-08-02 17:17       ` Takashi Iwai
2007-08-02 17:31 ` 2.6.23-rc1-mm2: Fix crash in sysfs_hash_and_remove Rafael J. Wysocki
2007-08-02 17:34   ` Tejun Heo
2007-08-02 18:19     ` Eric W. Biederman
2007-08-03 11:00 ` 2.6.23-rc1-mm2 Marc Dietrich
2007-08-03 16:38   ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-03 16:38     ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-03 17:03     ` 2.6.23-rc1-mm2 Trond Myklebust
2007-08-03 17:03       ` [NFS] 2.6.23-rc1-mm2 Trond Myklebust
2007-08-03 17:21       ` 2.6.23-rc1-mm2 Oleg Nesterov
2007-08-03 17:21         ` [NFS] 2.6.23-rc1-mm2 Oleg Nesterov
2007-08-06  6:24         ` 2.6.23-rc1-mm2 Johannes Berg
2007-08-06  6:24           ` [NFS] 2.6.23-rc1-mm2 Johannes Berg
2007-08-06 10:53           ` 2.6.23-rc1-mm2 Oleg Nesterov
2007-08-06 10:53             ` [NFS] 2.6.23-rc1-mm2 Oleg Nesterov
2007-08-06 10:58             ` 2.6.23-rc1-mm2 Johannes Berg
2007-08-06 10:58               ` [NFS] 2.6.23-rc1-mm2 Johannes Berg
2007-08-06 11:05           ` 2.6.23-rc1-mm2 Marc Dietrich
2007-08-06 11:05             ` [NFS] 2.6.23-rc1-mm2 Marc Dietrich
2007-08-06 11:13             ` 2.6.23-rc1-mm2 Johannes Berg
2007-08-06 11:13               ` [NFS] 2.6.23-rc1-mm2 Johannes Berg
2007-08-06 16:24             ` 2.6.23-rc1-mm2 Trond Myklebust
2007-08-06 16:24               ` [NFS] 2.6.23-rc1-mm2 Trond Myklebust
2007-08-07 12:09               ` Marc Dietrich
2007-08-07 21:08         ` 2.6.23-rc1-mm2 Trond Myklebust
2007-08-07 21:08           ` [NFS] 2.6.23-rc1-mm2 Trond Myklebust
2007-08-07 21:37           ` 2.6.23-rc1-mm2 Oleg Nesterov
2007-08-07 21:37             ` [NFS] 2.6.23-rc1-mm2 Oleg Nesterov
2007-08-07 22:05             ` 2.6.23-rc1-mm2 Trond Myklebust
2007-08-07 22:05               ` [NFS] 2.6.23-rc1-mm2 Trond Myklebust
2007-08-07 22:20               ` 2.6.23-rc1-mm2 Oleg Nesterov
2007-08-07 22:20                 ` [NFS] 2.6.23-rc1-mm2 Oleg Nesterov
2007-08-07 23:08                 ` 2.6.23-rc1-mm2 Trond Myklebust
2007-08-07 23:08                   ` [NFS] 2.6.23-rc1-mm2 Trond Myklebust
2007-08-07 23:14                   ` 2.6.23-rc1-mm2 Oleg Nesterov
2007-08-07 23:14                     ` [NFS] 2.6.23-rc1-mm2 Oleg Nesterov
2007-08-08 21:31 ` 2.6.23-rc1-mm2: MMC_ARMMMCI compile error Adrian Bunk
2007-08-09 12:03   ` Pierre Ossman
2007-08-14 21:21 ` [-mm patch] make pm3fb_init() static again Adrian Bunk
2007-08-14 21:21 ` Adrian Bunk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070814212152.GT18945@stusta.de \
    --to=bunk@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=edward@namesys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reiserfs-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.