The exception structure is not necessarily just a snapshot
element (especially after we pull it out of dm-snap.c).
Renaming appropriately.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Index: linux-2.6/drivers/md/dm-exception-store.h
================================================== =================
--- linux-2.6.orig/drivers/md/dm-exception-store.h
+++ linux-2.6/drivers/md/dm-exception-store.h
@@ -26,7 +26,7 @@ typedef sector_t chunk_t;
* of chunks that follow contiguously. Remaining bits hold the number of the
* chunk within the device.
*/
-struct dm_snap_exception {
+struct dm_exception {
struct list_head hash_list;
chunk_t old_chunk;
@@ -64,13 +64,13 @@ struct dm_exception_store_type {
* Find somewhere to store the next exception.
*/
int (*prepare_exception) (struct dm_exception_store *store,
- struct dm_snap_exception *e);
+ struct dm_exception *e);
/*
* Update the metadata with this exception.
*/
void (*commit_exception) (struct dm_exception_store *store,
- struct dm_snap_exception *e,
+ struct dm_exception *e,
void (*callback) (void *, int success),
void *callback_context);
- exception_cache = KMEM_CACHE(dm_snap_exception, 0);
+ exception_cache = KMEM_CACHE(dm_exception, 0);
if (!exception_cache) {
DMERR("Couldn't create exception cache.");
r = -ENOMEM;
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
03-17-2009, 01:02 PM
Jonathan Brassow
dm-snap-rename-dm_snap_exception.patch
The exception structure is not necessarily just a snapshot
element (especially after we pull it out of dm-snap.c).
Renaming appropriately.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Index: linux-2.6/drivers/md/dm-exception-store.h
================================================== =================
--- linux-2.6.orig/drivers/md/dm-exception-store.h
+++ linux-2.6/drivers/md/dm-exception-store.h
@@ -26,7 +26,7 @@ typedef sector_t chunk_t;
* of chunks that follow contiguously. Remaining bits hold the number of the
* chunk within the device.
*/
-struct dm_snap_exception {
+struct dm_exception {
struct list_head hash_list;
chunk_t old_chunk;
@@ -64,13 +64,13 @@ struct dm_exception_store_type {
* Find somewhere to store the next exception.
*/
int (*prepare_exception) (struct dm_exception_store *store,
- struct dm_snap_exception *e);
+ struct dm_exception *e);
/*
* Update the metadata with this exception.
*/
void (*commit_exception) (struct dm_exception_store *store,
- struct dm_snap_exception *e,
+ struct dm_exception *e,
void (*callback) (void *, int success),
void *callback_context);
- exception_cache = KMEM_CACHE(dm_snap_exception, 0);
+ exception_cache = KMEM_CACHE(dm_exception, 0);
if (!exception_cache) {
DMERR("Couldn't create exception cache.");
r = -ENOMEM;
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
03-17-2009, 03:54 PM
Christoph Hellwig
dm-snap-rename-dm_snap_exception.patch
On Tue, Mar 17, 2009 at 09:02:21AM -0500, Jonathan Brassow wrote:
> The exception structure is not necessarily just a snapshot
> element (especially after we pull it out of dm-snap.c).
>
> Renaming appropriately.
Can you give your patches proper Subject lines?
E.g. for this one:
Subject: [PATCH 1/29] dm: rename dm_snap_exception to dm_exception
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
03-17-2009, 04:06 PM
Jonathan Brassow
dm-snap-rename-dm_snap_exception.patch
On Mar 17, 2009, at 11:54 AM, Christoph Hellwig wrote:
On Tue, Mar 17, 2009 at 09:02:21AM -0500, Jonathan Brassow wrote:
The exception structure is not necessarily just a snapshot
element (especially after we pull it out of dm-snap.c).
Renaming appropriately.
Can you give your patches proper Subject lines?
E.g. for this one:
Subject: [PATCH 1/29] dm: rename dm_snap_exception to dm_exception
No problem.... I ran that last batch through a script.
I'll do that for the next iteration.
brassow
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
03-17-2009, 04:07 PM
Alasdair G Kergon
dm-snap-rename-dm_snap_exception.patch
On Tue, Mar 17, 2009 at 12:54:36PM -0400, Christoph Hellwig wrote:
> Can you give your patches proper Subject lines?
> E.g. for this one:
> Subject: [PATCH 1/29] dm: rename dm_snap_exception to dm_exception
Here's the perl I use, if it's any help to you.
$tidyname =~ s/.patch//;
$tidyname =~ s/-/ /g;
$tidyname =~ s/(dm( (crypt|delay|exception store|ioctl|io|kcopyd|log|mpath|raid1|snapshot|tab le|target|request)|))/1:/;
Alasdair
--
agk@redhat.com
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel