]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers: block: Remove unused function drbd_bm_write_lazy() in drbd_bitmap.c
authorRashika Kheria <rashika.kheria@gmail.com>
Thu, 19 Dec 2013 09:33:36 +0000 (15:03 +0530)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:19:39 +0000 (16:19 +0100)
Remove unused function drbd_bm_write_lazy() in drbd/drbd_bitmap.c.

This eliminates the following warning in drbd/drbd_bitmap.c:
drivers/block/drbd/drbd_bitmap.c:1208:5: warning: no previous prototype for ‘drbd_bm_write_lazy’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
drivers/block/drbd/drbd_bitmap.c

index 597f111df67b3597987eb816f8ff2ca2ec17c285..6b3788483de63adca2a11a5915286c9e842d35fb 100644 (file)
@@ -1200,16 +1200,6 @@ int drbd_bm_write_all(struct drbd_conf *mdev) __must_hold(local)
        return bm_rw(mdev, WRITE, BM_WRITE_ALL_PAGES, 0);
 }
 
-/**
- * drbd_bm_lazy_write_out() - Write bitmap pages 0 to @upper_idx-1, if they have changed.
- * @mdev:      DRBD device.
- * @upper_idx: 0: write all changed pages; +ve: page index to stop scanning for changed pages
- */
-int drbd_bm_write_lazy(struct drbd_conf *mdev, unsigned upper_idx) __must_hold(local)
-{
-       return bm_rw(mdev, WRITE, BM_AIO_COPY_PAGES, upper_idx);
-}
-
 /**
  * drbd_bm_write_copy_pages() - Write the whole bitmap to its on disk location.
  * @mdev:      DRBD device.