[PATCH] bcachefs: Fix format specifiers in bch2_btree_key_cache_to_text()

2024-04-23 Thread Nathan Chancellor
ot;bcachefs: Btree key cache instrumentation") Signed-off-by: Nathan Chancellor --- fs/bcachefs/btree_key_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/bcachefs/btree_key_cache.c b/fs/bcachefs/btree_key_cache.c index 52aada7a34ca..4c8da356f76

[PATCH] bcachefs: Fix type of flags parameter for some ->trigger() implementations

2024-04-23 Thread Nathan Chancellor
if there are no warnings currently) to resolve the warnings and potential kCFI runtime failures. Fixes: 31e4ef3280c8 ("bcachefs: iter/update/trigger/str_hash flag cleanup") Signed-off-by: Nathan Chancellor --- fs/bcachefs/alloc_background.c | 2 +- fs/bcachefs/alloc_background.h | 3 ++- fs/bcache

[PATCH] bcachefs: Fix format specifier in validate_bset_keys()

2024-04-16 Thread Nathan Chancellor
130747.wh6dd23p-...@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202404131536.hdambovc-...@intel.com/ Signed-off-by: Nathan Chancellor --- fs/bcachefs/btree_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/btree_io.c b/fs/bcachefs/btree_io.c ind

Re: [PATCH 6/6] bcachefs: rebalance_work

2023-11-01 Thread Nathan Chancellor
On Wed, Nov 01, 2023 at 10:02:55AM -0700, Nathan Chancellor wrote: > Hi Kent, > > On Tue, Oct 24, 2023 at 03:14:11PM -0400, Kent Overstreet wrote: > > This adds a new btree, rebalance_work, to eliminate scanning required > > for finding extents that need work done on them in

Re: [PATCH 6/6] bcachefs: rebalance_work

2023-11-01 Thread Nathan Chancellor
Hi Kent, On Tue, Oct 24, 2023 at 03:14:11PM -0400, Kent Overstreet wrote: > This adds a new btree, rebalance_work, to eliminate scanning required > for finding extents that need work done on them in the background - i.e. > for the background_target and background_compression options. > >

[PATCH 7/7] bcachefs: Fix -Wcompare-distinct-pointer-types in bch2_copygc_get_buckets()

2023-09-12 Thread Nathan Chancellor
ating the warning. Fixes: dd49018737d4 ("bcachefs: Rhashtable based buckets_in_flight for copygc") Signed-off-by: Nathan Chancellor --- fs/bcachefs/movinggc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index 256431

[PATCH 6/7] bcachefs: Fix -Wcompare-distinct-pointer-types in do_encrypt()

2023-09-12 Thread Nathan Chancellor
tion, eliminating the warning. Fixes: 1fb50457684f ("bcachefs: Fix memory corruption in encryption path") Signed-off-by: Nathan Chancellor --- fs/bcachefs/checksum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/checksum.c b/fs/bcachefs/checksum.c index

[PATCH 5/7] bcachefs: Fix -Wincompatible-function-pointer-types-strict from key_invalid callbacks

2023-09-12 Thread Nathan Chancellor
int'. Adjust the type everywhere so that there is no more warning. Signed-off-by: Nathan Chancellor --- fs/bcachefs/bkey_methods.c | 10 +- fs/bcachefs/subvolume.c| 2 +- fs/bcachefs/subvolume.h| 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fs/bcachefs

[PATCH 4/7] bcachefs: Fix -Wformat in bch2_bucket_gens_invalid()

2023-09-12 Thread Nathan Chancellor
On 64-bit architectures, size_t is 'unsigned long', so there is no warning when using %lu but on 32-bit architectures, size_t is 'unsigned int'. Use '%zu', the format specifier for 'size_t', to eliminate the warning. Fixes: 4be0d766a7e9 ("bcachefs: bucket_gens btree") Signed-off-by: Nathan

[PATCH 3/7] bcachefs: Fix -Wformat in bch2_alloc_v4_invalid()

2023-09-12 Thread Nathan Chancellor
lu but on 32-bit architectures, size_t is 'unsigned int'. Use '%zu', the format specifier for 'size_t' to eliminate the warning. Fixes: 11be8e8db283 ("bcachefs: New on disk format: Backpointers") Signed-off-by: Nathan Chancellor --- fs/bcachefs/alloc_background.c | 2 +- 1 file

[PATCH 2/7] bcachefs: Fix -Wformat in bch2_btree_key_cache_to_text()

2023-09-12 Thread Nathan Chancellor
but on 32-bit architectures, size_t is 'unsigned int'. Use '%lu' to match the other format specifiers used in this function for printing values returned from atomic_long_read(). Fixes: 6d799930ce0f ("bcachefs: btree key cache pcpu freedlist") Signed-off-by: Nathan Chancellor --- fs/bcachef

[PATCH 0/7] bcachefs compiler warning fixes for 32-bit

2023-09-12 Thread Nathan Chancellor
Offset: [SP-960], Type: Spill, Align: 4, Size: 4 Offset: [SP-964], Type: Spill, Align: 4, Size: 4 Offset: [SP-968], Type: Spill, Align: 4, Size: 4 [-Rpass-analysis=stack-frame-layout] 362 | { | ^ --- Nathan Chancellor (7): bcachefs: Fix -Wformat in bch2_set_bucket_needs_journal_commit

[PATCH 1/7] bcachefs: Fix -Wformat in bch2_set_bucket_needs_journal_commit()

2023-09-12 Thread Nathan Chancellor
f ("bcachefs: New data structure for buckets waiting on journal commit") Signed-off-by: Nathan Chancellor --- fs/bcachefs/buckets_waiting_for_journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/buckets_waiting_for_journal.c b/fs/bcachefs/buc