]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MD: Move macros from raid1*.h to raid1*.c
authorJonathan Brassow <jbrassow@redhat.com>
Tue, 31 Jul 2012 00:03:52 +0000 (10:03 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 31 Jul 2012 00:03:52 +0000 (10:03 +1000)
commit473e87ce485ffcac041f7911b33f0b4cd4d6cf2b
tree01ae284e058d1805055bf153dd9175f1782181e8
parent0eaf822cb3dfcf2a64b2d27f4f6219186adb2695
MD: Move macros from raid1*.h to raid1*.c

MD RAID1/RAID10: Move some macros from .h file to .c file

There are three macros (IO_BLOCKED,IO_MADE_GOOD,BIO_SPECIAL) which are defined
in both raid1.h and raid10.h.  They are only used in there respective .c files.
However, if we wish to make RAID10 accessible to the device-mapper RAID
target (dm-raid.c), then we need to move these macros into the .c files where
they are used so that they do not conflict with each other.

The macros from the two files are identical and could be moved into md.h, but
I chose to leave the duplication and have them remain in the personality
files.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c
drivers/md/raid1.h
drivers/md/raid10.c
drivers/md/raid10.h