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:
parent
d9e6298edb
commit
7be54bd687
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user