1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

[device/bcache] fix min() function

This commit is contained in:
David Teigland 2018-02-08 11:16:19 -06:00
parent d9e6298edb
commit 7be54bd687

View File

@ -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;