diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-03-30 21:57:33 -0400 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-03-31 10:26:23 -0400 |
commit | 25985edcedea6396277003854657b5f3cb31a628 (patch) | |
tree | f026e810210a2ee7290caeb737c23cb6472b7c38 /drivers/block/drbd | |
parent | 6aba74f2791287ec407e0f92487a725a25908067 (diff) |
Fix common misspellings
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Diffstat (limited to 'drivers/block/drbd')
-rw-r--r-- | drivers/block/drbd/drbd_actlog.c | 2 | ||||
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 10 | ||||
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 4 | ||||
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 2 | ||||
-rw-r--r-- | drivers/block/drbd/drbd_vli.h | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/drivers/block/drbd/drbd_actlog.c b/drivers/block/drbd/drbd_actlog.c index 2a1642bc451d..c6828b68d77b 100644 --- a/drivers/block/drbd/drbd_actlog.c +++ b/drivers/block/drbd/drbd_actlog.c | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | /* We maintain a trivial check sum in our on disk activity log. | 31 | /* We maintain a trivial check sum in our on disk activity log. |
32 | * With that we can ensure correct operation even when the storage | 32 | * With that we can ensure correct operation even when the storage |
33 | * device might do a partial (last) sector write while loosing power. | 33 | * device might do a partial (last) sector write while losing power. |
34 | */ | 34 | */ |
35 | struct __packed al_transaction { | 35 | struct __packed al_transaction { |
36 | u32 magic; | 36 | u32 magic; |
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index 81030d8d654b..b2699bb2e530 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h | |||
@@ -622,7 +622,7 @@ DCBP_set_pad_bits(struct p_compressed_bm *p, int n) | |||
622 | /* one bitmap packet, including the p_header, | 622 | /* one bitmap packet, including the p_header, |
623 | * should fit within one _architecture independend_ page. | 623 | * should fit within one _architecture independend_ page. |
624 | * so we need to use the fixed size 4KiB page size | 624 | * so we need to use the fixed size 4KiB page size |
625 | * most architechtures have used for a long time. | 625 | * most architectures have used for a long time. |
626 | */ | 626 | */ |
627 | #define BM_PACKET_PAYLOAD_BYTES (4096 - sizeof(struct p_header80)) | 627 | #define BM_PACKET_PAYLOAD_BYTES (4096 - sizeof(struct p_header80)) |
628 | #define BM_PACKET_WORDS (BM_PACKET_PAYLOAD_BYTES/sizeof(long)) | 628 | #define BM_PACKET_WORDS (BM_PACKET_PAYLOAD_BYTES/sizeof(long)) |
@@ -810,7 +810,7 @@ enum { | |||
810 | 810 | ||
811 | /* global flag bits */ | 811 | /* global flag bits */ |
812 | enum { | 812 | enum { |
813 | CREATE_BARRIER, /* next P_DATA is preceeded by a P_BARRIER */ | 813 | CREATE_BARRIER, /* next P_DATA is preceded by a P_BARRIER */ |
814 | SIGNAL_ASENDER, /* whether asender wants to be interrupted */ | 814 | SIGNAL_ASENDER, /* whether asender wants to be interrupted */ |
815 | SEND_PING, /* whether asender should send a ping asap */ | 815 | SEND_PING, /* whether asender should send a ping asap */ |
816 | 816 | ||
@@ -1126,7 +1126,7 @@ struct drbd_conf { | |||
1126 | int c_sync_rate; /* current resync rate after syncer throttle magic */ | 1126 | int c_sync_rate; /* current resync rate after syncer throttle magic */ |
1127 | struct fifo_buffer rs_plan_s; /* correction values of resync planer */ | 1127 | struct fifo_buffer rs_plan_s; /* correction values of resync planer */ |
1128 | int rs_in_flight; /* resync sectors in flight (to proxy, in proxy and from proxy) */ | 1128 | int rs_in_flight; /* resync sectors in flight (to proxy, in proxy and from proxy) */ |
1129 | int rs_planed; /* resync sectors already planed */ | 1129 | int rs_planed; /* resync sectors already planned */ |
1130 | atomic_t ap_in_flight; /* App sectors in flight (waiting for ack) */ | 1130 | atomic_t ap_in_flight; /* App sectors in flight (waiting for ack) */ |
1131 | }; | 1131 | }; |
1132 | 1132 | ||
@@ -1144,7 +1144,7 @@ static inline unsigned int mdev_to_minor(struct drbd_conf *mdev) | |||
1144 | return mdev->minor; | 1144 | return mdev->minor; |
1145 | } | 1145 | } |
1146 | 1146 | ||
1147 | /* returns 1 if it was successfull, | 1147 | /* returns 1 if it was successful, |
1148 | * returns 0 if there was no data socket. | 1148 | * returns 0 if there was no data socket. |
1149 | * so wherever you are going to use the data.socket, e.g. do | 1149 | * so wherever you are going to use the data.socket, e.g. do |
1150 | * if (!drbd_get_data_sock(mdev)) | 1150 | * if (!drbd_get_data_sock(mdev)) |
@@ -2079,7 +2079,7 @@ static inline void inc_ap_pending(struct drbd_conf *mdev) | |||
2079 | /* counts how many resync-related answers we still expect from the peer | 2079 | /* counts how many resync-related answers we still expect from the peer |
2080 | * increase decrease | 2080 | * increase decrease |
2081 | * C_SYNC_TARGET sends P_RS_DATA_REQUEST (and expects P_RS_DATA_REPLY) | 2081 | * C_SYNC_TARGET sends P_RS_DATA_REQUEST (and expects P_RS_DATA_REPLY) |
2082 | * C_SYNC_SOURCE sends P_RS_DATA_REPLY (and expects P_WRITE_ACK whith ID_SYNCER) | 2082 | * C_SYNC_SOURCE sends P_RS_DATA_REPLY (and expects P_WRITE_ACK with ID_SYNCER) |
2083 | * (or P_NEG_ACK with ID_SYNCER) | 2083 | * (or P_NEG_ACK with ID_SYNCER) |
2084 | */ | 2084 | */ |
2085 | static inline void inc_rs_pending(struct drbd_conf *mdev) | 2085 | static inline void inc_rs_pending(struct drbd_conf *mdev) |
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index dfc85f32d317..5b525c179f39 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c | |||
@@ -1561,7 +1561,7 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os, | |||
1561 | if (drbd_send_state(mdev)) | 1561 | if (drbd_send_state(mdev)) |
1562 | dev_warn(DEV, "Notified peer that I'm now diskless.\n"); | 1562 | dev_warn(DEV, "Notified peer that I'm now diskless.\n"); |
1563 | /* corresponding get_ldev in __drbd_set_state | 1563 | /* corresponding get_ldev in __drbd_set_state |
1564 | * this may finaly trigger drbd_ldev_destroy. */ | 1564 | * this may finally trigger drbd_ldev_destroy. */ |
1565 | put_ldev(mdev); | 1565 | put_ldev(mdev); |
1566 | } | 1566 | } |
1567 | 1567 | ||
@@ -3706,7 +3706,7 @@ int drbd_md_read(struct drbd_conf *mdev, struct drbd_backing_dev *bdev) | |||
3706 | buffer = (struct meta_data_on_disk *)page_address(mdev->md_io_page); | 3706 | buffer = (struct meta_data_on_disk *)page_address(mdev->md_io_page); |
3707 | 3707 | ||
3708 | if (!drbd_md_sync_page_io(mdev, bdev, bdev->md.md_offset, READ)) { | 3708 | if (!drbd_md_sync_page_io(mdev, bdev, bdev->md.md_offset, READ)) { |
3709 | /* NOTE: cant do normal error processing here as this is | 3709 | /* NOTE: can't do normal error processing here as this is |
3710 | called BEFORE disk is attached */ | 3710 | called BEFORE disk is attached */ |
3711 | dev_err(DEV, "Error while reading metadata.\n"); | 3711 | dev_err(DEV, "Error while reading metadata.\n"); |
3712 | rv = ERR_IO_MD_DISK; | 3712 | rv = ERR_IO_MD_DISK; |
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index fe1564c7d8b6..fd26666c0b08 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -862,7 +862,7 @@ retry: | |||
862 | msock->sk->sk_rcvtimeo = mdev->net_conf->ping_int*HZ; | 862 | msock->sk->sk_rcvtimeo = mdev->net_conf->ping_int*HZ; |
863 | 863 | ||
864 | /* we don't want delays. | 864 | /* we don't want delays. |
865 | * we use TCP_CORK where apropriate, though */ | 865 | * we use TCP_CORK where appropriate, though */ |
866 | drbd_tcp_nodelay(sock); | 866 | drbd_tcp_nodelay(sock); |
867 | drbd_tcp_nodelay(msock); | 867 | drbd_tcp_nodelay(msock); |
868 | 868 | ||
diff --git a/drivers/block/drbd/drbd_vli.h b/drivers/block/drbd/drbd_vli.h index fc824006e721..8cb1532a3816 100644 --- a/drivers/block/drbd/drbd_vli.h +++ b/drivers/block/drbd/drbd_vli.h | |||
@@ -32,7 +32,7 @@ | |||
32 | * the bitmap transfer time can take much too long, | 32 | * the bitmap transfer time can take much too long, |
33 | * if transmitted in plain text. | 33 | * if transmitted in plain text. |
34 | * | 34 | * |
35 | * We try to reduce the transfered bitmap information | 35 | * We try to reduce the transferred bitmap information |
36 | * by encoding runlengths of bit polarity. | 36 | * by encoding runlengths of bit polarity. |
37 | * | 37 | * |
38 | * We never actually need to encode a "zero" (runlengths are positive). | 38 | * We never actually need to encode a "zero" (runlengths are positive). |