[-mm patch] cachefs: possible cleanups
From: Adrian Bunk
Date: Mon Jan 03 2005 - 19:04:51 EST
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@xxxxxxxxx>
--- 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 */
/*****************************************************************************/
/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/