All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: master - [device/bcache] fix min() function
Date: Mon, 23 Apr 2018 09:52:21 -0400	[thread overview]
Message-ID: <201804231352.w3NDqL30000724@lists01.pubmisc.prod.ext.phx2.redhat.com> (raw)

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7be54bd687ead6aa21e04c8a85a648da369a3d88
Commit:        7be54bd687ead6aa21e04c8a85a648da369a3d88
Parent:        d9e6298edb0bc6533c22f7e95e613189abe89c99
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Thu Feb 8 11:16:19 2018 -0600
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Fri Apr 20 11:12:50 2018 -0500

[device/bcache] fix min() function

---
 lib/device/bcache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/device/bcache.c b/lib/device/bcache.c
index cea4db4..52be947 100644
--- a/lib/device/bcache.c
+++ b/lib/device/bcache.c
@@ -997,7 +997,7 @@ void bcache_prefetch_bytes(struct bcache *cache, int fd, off_t start, size_t len
 
 static off_t _min(off_t lhs, off_t rhs)
 {
-	if (rhs > lhs)
+	if (rhs < lhs)
 		return rhs;
 
 	return lhs;



             reply	other threads:[~2018-04-23 13:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-23 13:52 David Teigland [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-04-23 13:47 master - [device/bcache] fix min() function David Teigland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201804231352.w3NDqL30000724@lists01.pubmisc.prod.ext.phx2.redhat.com \
    --to=teigland@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.