All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Olien <dmo@osdl.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] trivial patch to dm-snap.c
Date: Tue, 27 Apr 2004 15:47:11 -0700	[thread overview]
Message-ID: <20040427224711.GA16883@osdl.org> (raw)


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;

                 reply	other threads:[~2004-04-27 22:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20040427224711.GA16883@osdl.org \
    --to=dmo@osdl.org \
    --cc=linux-kernel@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.