diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2010-12-13 12:03:38 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-03-10 05:36:37 -0500 |
commit | 1b881ef77537f1077482f9946a6a99b4e2dd54b2 (patch) | |
tree | 70edbe85f61fe74f1038b58997c3750af354b898 /drivers/block/drbd/drbd_main.c | |
parent | 24dccabb390412d04435e11cfb535df51def7b2d (diff) |
drbd: Rename __inc_ap_bio_cond to may_inc_ap_bio
The old name is confusing: the function does not increment anything.
Also rename _inc_ap_bio_cond to inc_ap_bio_cond: there is no need for
an underscore.
Finally, make it clear that these functions return boolean values.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_main.c')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 7c72595b7ff0..67fffad213ec 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c | |||
@@ -3239,7 +3239,7 @@ static int drbd_congested(void *congested_data, int bdi_bits) | |||
3239 | char reason = '-'; | 3239 | char reason = '-'; |
3240 | int r = 0; | 3240 | int r = 0; |
3241 | 3241 | ||
3242 | if (!__inc_ap_bio_cond(mdev)) { | 3242 | if (!may_inc_ap_bio(mdev)) { |
3243 | /* DRBD has frozen IO */ | 3243 | /* DRBD has frozen IO */ |
3244 | r = bdi_bits; | 3244 | r = bdi_bits; |
3245 | reason = 'd'; | 3245 | reason = 'd'; |