[DRBD-cvs] svn commit by phil - r2777 - trunk/drbd - Well,
there *are* devices with an other hard_sect size.
drbd-cvs at lists.linbit.com
drbd-cvs at lists.linbit.com
Fri Mar 2 13:19:17 CET 2007
Author: phil
Date: 2007-03-02 13:19:16 +0100 (Fri, 02 Mar 2007)
New Revision: 2777
Modified:
trunk/drbd/drbd_nl.c
Log:
Well, there *are* devices with an other hard_sect size.
Modified: trunk/drbd/drbd_nl.c
===================================================================
--- trunk/drbd/drbd_nl.c 2007-03-02 12:11:26 UTC (rev 2776)
+++ trunk/drbd/drbd_nl.c 2007-03-02 12:19:16 UTC (rev 2777)
@@ -616,7 +616,7 @@
if (b->merge_bvec_fn && !mdev->bc->dc.use_bmbv)
max_seg_s = PAGE_SIZE;
- max_seg_s = min(b->max_sectors << 9 , max_seg_s);
+ max_seg_s = min(b->max_sectors * b->hardsect_size, max_seg_s);
MTRACE(TraceTypeRq,TraceLvlSummary,
DUMPI(b->max_sectors);
More information about the drbd-cvs
mailing list