diff options
author | Brett Holman <bholman.devel@gmail.com> | 2021-10-16 19:13:53 -0600 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:14 -0400 |
commit | 6a0f414e2018fe7a2b001fbc8ccd4a8f4f946214 (patch) | |
tree | 9e4980c57b41ee3385367195ed38c5c15cf4d179 /fs/bcachefs/journal_reclaim.c | |
parent | 70d61a7036c8d046889a4bf4eda504a6a56b2642 (diff) | |
download | linux-stable-6a0f414e2018fe7a2b001fbc8ccd4a8f4f946214.tar.gz linux-stable-6a0f414e2018fe7a2b001fbc8ccd4a8f4f946214.tar.bz2 linux-stable-6a0f414e2018fe7a2b001fbc8ccd4a8f4f946214.zip |
bcachefs: Fix compiler warnings
Type size_t is architecture-specific. Fix warnings for some non-amd64
arches.
Signed-off-by: Brett Holman <bholman.devel@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal_reclaim.c')
-rw-r--r-- | fs/bcachefs/journal_reclaim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_reclaim.c b/fs/bcachefs/journal_reclaim.c index 54d8e2f32a37..0bc4681ccc24 100644 --- a/fs/bcachefs/journal_reclaim.c +++ b/fs/bcachefs/journal_reclaim.c @@ -653,7 +653,7 @@ static int __bch2_journal_reclaim(struct journal *j, bool direct) atomic_long_read(&c->btree_key_cache.nr_dirty), atomic_long_read(&c->btree_key_cache.nr_keys)); - min_key_cache = min(bch2_nr_btree_keys_need_flush(c), 128UL); + min_key_cache = min(bch2_nr_btree_keys_need_flush(c), (size_t) 128); nr_flushed = journal_flush_pins(j, seq_to_flush, min_nr, min_key_cache); |