master - [device/bcache] fix min() function
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7be54bd687ead6aa21e04c8a85a648da369a3d88 Commit: 7be54bd687ead6aa21e04c8a85a648da369a3d88 Parent: d9e6298edb0bc6533c22f7e95e613189abe89c99 Author: David Teigland <[email protected]> AuthorDate: Thu Feb 8 11:16:19 2018 -0600 Committer: David Teigland <[email protected]> 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(-)
lib/device/bcache.c +1 -1
@@ -997,7 +997,7 @@ void bcache_prefetch_bytes(struct bcache *cache, int fd, off_t start, size_t lenstatic off_t _min (off_t lhs,off_t rhs) { -if (rhs > lhs) +if (rhs < lhs)return rhs;return lhs;