public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [-mm patch] cachefs: possible cleanups
@ 2005-01-03 23:53 Adrian Bunk
  2005-01-04  8:49 ` Martin Waitz
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2005-01-03 23:53 UTC (permalink / raw)
  To: David Howells; +Cc: linux-kernel

The patch below contains the following possible cleanups:
- journal.c: make cachefs_ondisc_ujnl_marks static
- misc.c: #if 0 the unused global function __cachefs_page_get_private


diffstat output:
 fs/cachefs/journal.c |    2 +-
 fs/cachefs/misc.c    |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-mm1-full/fs/cachefs/journal.c.old	2005-01-03 23:53:49.000000000 +0100
+++ linux-2.6.10-mm1-full/fs/cachefs/journal.c	2005-01-03 23:54:09.000000000 +0100
@@ -19,7 +19,7 @@
 
 #define UJNL_WRAP(X) ((X) & (CACHEFS_ONDISC_UJNL_NUMENTS - 1))
 
-const char *cachefs_ondisc_ujnl_marks[] = {
+static const char *cachefs_ondisc_ujnl_marks[] = {
 	"Null     ",
 	"Batch    ",
 	"Ack      ",
--- linux-2.6.10-mm1-full/fs/cachefs/misc.c.old	2005-01-03 23:54:20.000000000 +0100
+++ linux-2.6.10-mm1-full/fs/cachefs/misc.c	2005-01-03 23:54:37.000000000 +0100
@@ -30,6 +30,7 @@
  * get a page caching token from for a page, allocating it and attaching it to
  * the page's private pointer if it doesn't exist
  */
+#if 0
 struct fscache_page * __cachefs_page_get_private(struct page *page,
 						 unsigned gfp_flags)
 {
@@ -51,6 +52,7 @@
 } /* end __cachefs_page_get_private() */
 
 EXPORT_SYMBOL(__cachefs_page_get_private);
+#endif  /*  0  */
 
 /*****************************************************************************/
 /*


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [-mm patch] cachefs: possible cleanups
  2005-01-03 23:53 [-mm patch] cachefs: possible cleanups Adrian Bunk
@ 2005-01-04  8:49 ` Martin Waitz
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Waitz @ 2005-01-04  8:49 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: David Howells, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

hoi :)

On Tue, Jan 04, 2005 at 12:53:40AM +0100, Adrian Bunk wrote:
> The patch below contains the following possible cleanups:
> - misc.c: #if 0 the unused global function __cachefs_page_get_private

it looks like this function should be removed, it is a duplicate of
__fscache_page_get_private in fs/fscache/page.c (from before the fscache split)

-- 
Martin Waitz

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-04  8:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-03 23:53 [-mm patch] cachefs: possible cleanups Adrian Bunk
2005-01-04  8:49 ` Martin Waitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox