diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-04-01 03:57:40 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-05-17 19:17:11 -0400 |
commit | b4ee79dac3bddc468e21cae0deb00b80ec4ac051 (patch) | |
tree | cbba8a249e20f2b0d03a5f7c91eedd02f293bf42 /drivers/block | |
parent | fd76438c2421324fa2fb9303e760ec5332ff0b58 (diff) |
drbd: Added some missing statics
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/drbd/drbd_bitmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c index 178cf1642b2d..aa7e23cf7e22 100644 --- a/drivers/block/drbd/drbd_bitmap.c +++ b/drivers/block/drbd/drbd_bitmap.c | |||
@@ -84,7 +84,7 @@ struct drbd_bitmap { | |||
84 | #define BM_MD_IO_ERROR 1 | 84 | #define BM_MD_IO_ERROR 1 |
85 | #define BM_P_VMALLOCED 2 | 85 | #define BM_P_VMALLOCED 2 |
86 | 86 | ||
87 | int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s, | 87 | static int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s, |
88 | unsigned long e, int val, const enum km_type km); | 88 | unsigned long e, int val, const enum km_type km); |
89 | 89 | ||
90 | static int bm_is_locked(struct drbd_bitmap *b) | 90 | static int bm_is_locked(struct drbd_bitmap *b) |
@@ -783,7 +783,7 @@ static void bm_page_io_async(struct drbd_conf *mdev, struct drbd_bitmap *b, int | |||
783 | /* nothing to do, on disk == in memory */ | 783 | /* nothing to do, on disk == in memory */ |
784 | # define bm_cpu_to_lel(x) ((void)0) | 784 | # define bm_cpu_to_lel(x) ((void)0) |
785 | # else | 785 | # else |
786 | void bm_cpu_to_lel(struct drbd_bitmap *b) | 786 | static void bm_cpu_to_lel(struct drbd_bitmap *b) |
787 | { | 787 | { |
788 | /* need to cpu_to_lel all the pages ... | 788 | /* need to cpu_to_lel all the pages ... |
789 | * this may be optimized by using | 789 | * this may be optimized by using |
@@ -1025,7 +1025,7 @@ unsigned long _drbd_bm_find_next_zero(struct drbd_conf *mdev, unsigned long bm_f | |||
1025 | * wants bitnr, not sector. | 1025 | * wants bitnr, not sector. |
1026 | * expected to be called for only a few bits (e - s about BITS_PER_LONG). | 1026 | * expected to be called for only a few bits (e - s about BITS_PER_LONG). |
1027 | * Must hold bitmap lock already. */ | 1027 | * Must hold bitmap lock already. */ |
1028 | int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s, | 1028 | static int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s, |
1029 | unsigned long e, int val, const enum km_type km) | 1029 | unsigned long e, int val, const enum km_type km) |
1030 | { | 1030 | { |
1031 | struct drbd_bitmap *b = mdev->bitmap; | 1031 | struct drbd_bitmap *b = mdev->bitmap; |
@@ -1063,7 +1063,7 @@ int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s, | |||
1063 | * for val != 0, we change 0 -> 1, return code positive | 1063 | * for val != 0, we change 0 -> 1, return code positive |
1064 | * for val == 0, we change 1 -> 0, return code negative | 1064 | * for val == 0, we change 1 -> 0, return code negative |
1065 | * wants bitnr, not sector */ | 1065 | * wants bitnr, not sector */ |
1066 | int bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s, | 1066 | static int bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s, |
1067 | const unsigned long e, int val) | 1067 | const unsigned long e, int val) |
1068 | { | 1068 | { |
1069 | unsigned long flags; | 1069 | unsigned long flags; |