patch-2.4.26 linux-2.4.26/drivers/md/lvm-snap.c

Next file: linux-2.4.26/drivers/md/raid1.c
Previous file: linux-2.4.26/drivers/isdn/hisax/isurf.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/drivers/md/lvm-snap.c linux-2.4.26/drivers/md/lvm-snap.c
@@ -554,17 +554,15 @@
 
 int lvm_snapshot_alloc(lv_t * lv_snap)
 {
-	int ret, max_sectors;
+	int ret;
 
 	/* allocate kiovec to do chunk io */
 	ret = alloc_kiovec(1, &lv_snap->lv_iobuf);
 	if (ret)
 		goto out;
 
-	max_sectors = KIO_MAX_SECTORS << (PAGE_SHIFT - 9);
-
-	ret =
-	    lvm_snapshot_alloc_iobuf_pages(lv_snap->lv_iobuf, max_sectors);
+	ret = lvm_snapshot_alloc_iobuf_pages(lv_snap->lv_iobuf,
+					     KIO_MAX_SECTORS);
 	if (ret)
 		goto out_free_kiovec;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)