OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0e22a2
)
drbd: Remove obsolete comment
author
Andreas Gruenbacher
<agruen@linbit.com>
Mon, 21 Feb 2011 11:34:58 +0000
(12:34 +0100)
committer
Philipp Reisner
<philipp.reisner@linbit.com>
Fri, 14 Oct 2011 14:47:38 +0000
(16:47 +0200)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_req.c
patch
|
blob
|
history
diff --git
a/drivers/block/drbd/drbd_req.c
b/drivers/block/drbd/drbd_req.c
index
18eb3d1
..
157c737
100644
(file)
--- a/
drivers/block/drbd/drbd_req.c
+++ b/
drivers/block/drbd/drbd_req.c
@@
-667,10
+667,9
@@
static int drbd_may_do_local_read(struct drbd_conf *mdev, sector_t sector, int s
return 0;
if (mdev->state.disk < D_INCONSISTENT)
return 0;
- /* state.disk == D_INCONSISTENT We will have a look at the BitMap */
- nr_sectors = drbd_get_capacity(mdev->this_bdev);
esector = sector + (size >> 9) - 1;
+ nr_sectors = drbd_get_capacity(mdev->this_bdev);
D_ASSERT(sector < nr_sectors);
D_ASSERT(esector < nr_sectors);