lkml.org 
[lkml]   [2004]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] trivial patch to dm-snap.c

Just added to function declarations to make them static, and fixed up
an unused function declaration.

diff -ur linux-2.6.6-rc2-mm1-udm1-original/drivers/md/dm-snap.c linux-2.6.6-rc2-mm1-udm1-patched/drivers/md/dm-snap.c
--- linux-2.6.6-rc2-mm1-udm1-original/drivers/md/dm-snap.c 2004-04-27 15:10:27.000000000 -0700
+++ linux-2.6.6-rc2-mm1-udm1-patched/drivers/md/dm-snap.c 2004-04-27 14:53:54.000000000 -0700
@@ -608,9 +608,9 @@
return NULL;
}

+#if 0
static void check_free_space(struct dm_snapshot *s)
{
-#if 0
sector_t numerator, denominator;
double n, d;
unsigned pc;
@@ -628,8 +628,8 @@
dm_table_event(s->table);
s->last_percent = pc - pc % WAKE_UP_PERCENT;
}
-#endif
}
+#endif

static void pending_complete(struct pending_exception *pe, int success)
{
@@ -667,8 +667,10 @@
flush_bios(bio_list_get(&pe->snapshot_bios));
DMDEBUG("Exception completed successfully.");

+#if 0
/* Notify any interested parties */
//check_free_space(s);
+#endif

} else {
/* Read/write error - snapshot is unusable */
@@ -889,7 +891,7 @@
return r;
}

-void snapshot_resume(struct dm_target *ti)
+static void snapshot_resume(struct dm_target *ti)
{
struct dm_snapshot *s = (struct dm_snapshot *) ti->private;

@@ -1040,7 +1042,7 @@
/*
* Called on a write from the origin driver.
*/
-int do_origin(struct dm_dev *origin, struct bio *bio)
+static int do_origin(struct dm_dev *origin, struct bio *bio)
{
struct origin *o;
int r;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.020 / U:1.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site