]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drbd: Inline function overlaps() is now unused
authorAndreas Gruenbacher <agruen@linbit.com>
Tue, 25 Jan 2011 15:36:10 +0000 (16:36 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 29 Aug 2011 09:26:59 +0000 (11:26 +0200)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_req.h

index 6dbbe8906c8e34c1c654e18202b8bb2d0824a6ee..9d75647cae8f95c16d691757a23cd6b9dfa29b7f 100644 (file)
@@ -260,11 +260,6 @@ static inline void drbd_req_free(struct drbd_request *req)
        mempool_free(req, drbd_request_mempool);
 }
 
-static inline int overlaps(sector_t s1, int l1, sector_t s2, int l2)
-{
-       return !((s1 + (l1>>9) <= s2) || (s1 >= s2 + (l2>>9)));
-}
-
 /* Short lived temporary struct on the stack.
  * We could squirrel the error to be returned into
  * bio->bi_size, or similar. But that would be too ugly. */