diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-03-18 07:10:08 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-03-18 07:31:47 -0400 |
commit | 9fc6ccd8659598d4ca885220a795889071b619f4 (patch) | |
tree | 6596a691ca46902a6ad34284a0ce41b0984327b0 | |
parent | 1e94e95540b5857e777f0484fcfe7c4a80523022 (diff) |
bcachefs: fix copygc_pred()
-rw-r--r-- | fs/bcachefs/movinggc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index ea7f591e18b1..3b4a5292ef6a 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -72,9 +72,9 @@ static bool __copygc_pred(struct bch_dev *ca, if (ptr) { struct copygc_heap_entry search = { .offset = ptr->offset }; - size_t i = eytzinger0_find_le(h->data, h->used, - sizeof(h->data[0]), - bucket_offset_cmp, &search); + ssize_t i = eytzinger0_find_le(h->data, h->used, + sizeof(h->data[0]), + bucket_offset_cmp, &search); return (i >= 0 && ptr->offset < h->data[i].offset + ca->mi.bucket_size && |