Commit b4ee79da authored by Philipp Reisner's avatar Philipp Reisner

drbd: Added some missing statics

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent fd76438c
...@@ -84,7 +84,7 @@ struct drbd_bitmap { ...@@ -84,7 +84,7 @@ struct drbd_bitmap {
#define BM_MD_IO_ERROR 1 #define BM_MD_IO_ERROR 1
#define BM_P_VMALLOCED 2 #define BM_P_VMALLOCED 2
int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s, static int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s,
unsigned long e, int val, const enum km_type km); unsigned long e, int val, const enum km_type km);
static int bm_is_locked(struct drbd_bitmap *b) 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,7 +783,7 @@ static void bm_page_io_async(struct drbd_conf *mdev, struct drbd_bitmap *b, int
/* nothing to do, on disk == in memory */ /* nothing to do, on disk == in memory */
# define bm_cpu_to_lel(x) ((void)0) # define bm_cpu_to_lel(x) ((void)0)
# else # else
void bm_cpu_to_lel(struct drbd_bitmap *b) static void bm_cpu_to_lel(struct drbd_bitmap *b)
{ {
/* need to cpu_to_lel all the pages ... /* need to cpu_to_lel all the pages ...
* this may be optimized by using * 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,7 +1025,7 @@ unsigned long _drbd_bm_find_next_zero(struct drbd_conf *mdev, unsigned long bm_f
* wants bitnr, not sector. * wants bitnr, not sector.
* expected to be called for only a few bits (e - s about BITS_PER_LONG). * expected to be called for only a few bits (e - s about BITS_PER_LONG).
* Must hold bitmap lock already. */ * Must hold bitmap lock already. */
int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s, static int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s,
unsigned long e, int val, const enum km_type km) unsigned long e, int val, const enum km_type km)
{ {
struct drbd_bitmap *b = mdev->bitmap; struct drbd_bitmap *b = mdev->bitmap;
...@@ -1063,7 +1063,7 @@ int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s, ...@@ -1063,7 +1063,7 @@ int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s,
* for val != 0, we change 0 -> 1, return code positive * for val != 0, we change 0 -> 1, return code positive
* for val == 0, we change 1 -> 0, return code negative * for val == 0, we change 1 -> 0, return code negative
* wants bitnr, not sector */ * wants bitnr, not sector */
int bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s, static int bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s,
const unsigned long e, int val) const unsigned long e, int val)
{ {
unsigned long flags; unsigned long flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment