diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2010-12-09 09:03:57 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-03-10 05:36:24 -0500 |
commit | 81e84650c200de0695372461964dd960365696db (patch) | |
tree | c57e51e8c1f540321fd6e8d43c304a95f7fa5ebe /drivers/block/drbd/drbd_bitmap.c | |
parent | 6184ea2145609b4ad63b141bf1f8124135ff4949 (diff) |
drbd: Use the standard bool, true, and false keywords
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_bitmap.c')
-rw-r--r-- | drivers/block/drbd/drbd_bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c index 5dafbabe9617..9390e9526786 100644 --- a/drivers/block/drbd/drbd_bitmap.c +++ b/drivers/block/drbd/drbd_bitmap.c | |||
@@ -844,7 +844,7 @@ static int bm_rw(struct drbd_conf *mdev, int rw) __must_hold(local) | |||
844 | 844 | ||
845 | if (test_bit(BM_MD_IO_ERROR, &b->bm_flags)) { | 845 | if (test_bit(BM_MD_IO_ERROR, &b->bm_flags)) { |
846 | dev_alert(DEV, "we had at least one MD IO ERROR during bitmap IO\n"); | 846 | dev_alert(DEV, "we had at least one MD IO ERROR during bitmap IO\n"); |
847 | drbd_chk_io_error(mdev, 1, TRUE); | 847 | drbd_chk_io_error(mdev, 1, true); |
848 | err = -EIO; | 848 | err = -EIO; |
849 | } | 849 | } |
850 | 850 | ||
@@ -916,7 +916,7 @@ int drbd_bm_write_sect(struct drbd_conf *mdev, unsigned long enr) __must_hold(lo | |||
916 | dev_err(DEV, "IO ERROR writing bitmap sector %lu " | 916 | dev_err(DEV, "IO ERROR writing bitmap sector %lu " |
917 | "(meta-disk sector %llus)\n", | 917 | "(meta-disk sector %llus)\n", |
918 | enr, (unsigned long long)on_disk_sector); | 918 | enr, (unsigned long long)on_disk_sector); |
919 | drbd_chk_io_error(mdev, 1, TRUE); | 919 | drbd_chk_io_error(mdev, 1, true); |
920 | for (i = 0; i < AL_EXT_PER_BM_SECT; i++) | 920 | for (i = 0; i < AL_EXT_PER_BM_SECT; i++) |
921 | drbd_bm_ALe_set_all(mdev, enr*AL_EXT_PER_BM_SECT+i); | 921 | drbd_bm_ALe_set_all(mdev, enr*AL_EXT_PER_BM_SECT+i); |
922 | } | 922 | } |