LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] block: remove unused ll_new_mergeable()
@ 2008-10-11  6:38 FUJITA Tomonori
  2008-10-20  5:11 ` FUJITA Tomonori
  0 siblings, 1 reply; 3+ messages in thread
From: FUJITA Tomonori @ 2008-10-11  6:38 UTC (permalink / raw)
  To: jens.axboe; +Cc: linux-kernel

This is against the latest git (b922df7383749a1c0b7ea64c50fa839263d3816b).
=
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Subject: [PATCH] block: remove unused ll_new_mergeable()

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
---
 block/blk-merge.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/block/blk-merge.c b/block/blk-merge.c
index 68b0f1e..37bcfc9 100644
--- a/block/blk-merge.c
+++ b/block/blk-merge.c
@@ -218,27 +218,6 @@ new_segment:
 }
 EXPORT_SYMBOL(blk_rq_map_sg);
 
-static inline int ll_new_mergeable(struct request_queue *q,
-				   struct request *req,
-				   struct bio *bio)
-{
-	int nr_phys_segs = bio_phys_segments(q, bio);
-
-	if (req->nr_phys_segments + nr_phys_segs > q->max_phys_segments) {
-		req->cmd_flags |= REQ_NOMERGE;
-		if (req == q->last_merge)
-			q->last_merge = NULL;
-		return 0;
-	}
-
-	/*
-	 * A hw segment is just getting larger, bump just the phys
-	 * counter.
-	 */
-	req->nr_phys_segments += nr_phys_segs;
-	return 1;
-}
-
 static inline int ll_new_hw_segment(struct request_queue *q,
 				    struct request *req,
 				    struct bio *bio)
-- 
1.5.5.GIT


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: remove unused ll_new_mergeable()
  2008-10-11  6:38 [PATCH] block: remove unused ll_new_mergeable() FUJITA Tomonori
@ 2008-10-20  5:11 ` FUJITA Tomonori
  2008-10-20  5:35   ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: FUJITA Tomonori @ 2008-10-20  5:11 UTC (permalink / raw)
  To: jens.axboe; +Cc: linux-kernel

On Sat, 11 Oct 2008 15:38:08 +0900
FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:

> This is against the latest git (b922df7383749a1c0b7ea64c50fa839263d3816b).
> =
> From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> Subject: [PATCH] block: remove unused ll_new_mergeable()
> 
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> ---
>  block/blk-merge.c |   21 ---------------------
>  1 files changed, 0 insertions(+), 21 deletions(-)

Ping. Any reason to keep this function?


> diff --git a/block/blk-merge.c b/block/blk-merge.c
> index 68b0f1e..37bcfc9 100644
> --- a/block/blk-merge.c
> +++ b/block/blk-merge.c
> @@ -218,27 +218,6 @@ new_segment:
>  }
>  EXPORT_SYMBOL(blk_rq_map_sg);
>  
> -static inline int ll_new_mergeable(struct request_queue *q,
> -				   struct request *req,
> -				   struct bio *bio)
> -{
> -	int nr_phys_segs = bio_phys_segments(q, bio);
> -
> -	if (req->nr_phys_segments + nr_phys_segs > q->max_phys_segments) {
> -		req->cmd_flags |= REQ_NOMERGE;
> -		if (req == q->last_merge)
> -			q->last_merge = NULL;
> -		return 0;
> -	}
> -
> -	/*
> -	 * A hw segment is just getting larger, bump just the phys
> -	 * counter.
> -	 */
> -	req->nr_phys_segments += nr_phys_segs;
> -	return 1;
> -}
> -
>  static inline int ll_new_hw_segment(struct request_queue *q,
>  				    struct request *req,
>  				    struct bio *bio)
> -- 
> 1.5.5.GIT
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: remove unused ll_new_mergeable()
  2008-10-20  5:11 ` FUJITA Tomonori
@ 2008-10-20  5:35   ` Jens Axboe
  0 siblings, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2008-10-20  5:35 UTC (permalink / raw)
  To: FUJITA Tomonori; +Cc: linux-kernel

On Mon, Oct 20 2008, FUJITA Tomonori wrote:
> On Sat, 11 Oct 2008 15:38:08 +0900
> FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:
> 
> > This is against the latest git (b922df7383749a1c0b7ea64c50fa839263d3816b).
> > =
> > From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> > Subject: [PATCH] block: remove unused ll_new_mergeable()
> > 
> > Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> > ---
> >  block/blk-merge.c |   21 ---------------------
> >  1 files changed, 0 insertions(+), 21 deletions(-)
> 
> Ping. Any reason to keep this function?

Not at all, I thought I had already merged this up - woops! Applied,
thanks.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-20  5:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-11  6:38 [PATCH] block: remove unused ll_new_mergeable() FUJITA Tomonori
2008-10-20  5:11 ` FUJITA Tomonori
2008-10-20  5:35   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).