Open colttt opened 3 years ago
Same here, but on the larger scale:
[ 85.627282] bcachefs (ef6ffb79-752e-4fbf-93cc-f09d3e8043b0): disk usage increased 1 more than 0 sectors reserved
[ 85.627288] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627291] bcachefs: fs_usage_apply_warn() u64s 5 type deleted 6640:40:U32_MAX len 0 ver 0:
[ 85.627292] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627294] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627296] bcachefs: fs_usage_apply_warn() u64s 5 type deleted 6640:48:U32_MAX len 0 ver 0:
[ 85.627297] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627298] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627299] bcachefs: fs_usage_apply_warn() u64s 5 type deleted 6640:64:U32_MAX len 0 ver 0:
[ 85.627300] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627302] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627305] bcachefs: fs_usage_apply_warn() u64s 7 type alloc_v2 0:41734:0 len 0 ver 0: gen 1 oldest_gen 1 data_type user read_time 79811153400 write_time 0 dirty_sectors 0 cached_sectors 114 stripe 0 stripe_redundancy 0
[ 85.627307] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627309] bcachefs: fs_usage_apply_warn() u64s 7 type alloc_v2 0:41734:0 len 0 ver 0: gen 1 oldest_gen 1 data_type user read_time 79811153400 write_time 0 dirty_sectors 0 cached_sectors 113 stripe 0 stripe_redundancy 0
[ 85.627311] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627313] bcachefs: fs_usage_apply_warn() u64s 8 type alloc_v2 0:45690:0 len 0 ver 0: gen 5 oldest_gen 1 data_type user read_time 79811154584 write_time 53236789560 dirty_sectors 0 cached_sectors 80 stripe 0 stripe_redundancy 0
[ 85.627314] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627315] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627317] bcachefs: fs_usage_apply_warn() u64s 8 type alloc_v2 0:381389:0 len 0 ver 0: gen 7 oldest_gen 1 data_type user read_time 79811153128 write_time 57077930360 dirty_sectors 0 cached_sectors 256 stripe 0 stripe_redundancy 0
[ 85.627319] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627319] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627321] bcachefs: fs_usage_apply_warn() u64s 7 type alloc_v2 1:53175:0 len 0 ver 0: gen 1 oldest_gen 1 data_type user read_time 79811153128 write_time 0 dirty_sectors 0 cached_sectors 512 stripe 0 stripe_redundancy 0
[ 85.627323] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627325] bcachefs: fs_usage_apply_warn() u64s 7 type alloc_v2 1:53175:0 len 0 ver 0: gen 1 oldest_gen 1 data_type user read_time 79811153128 write_time 0 dirty_sectors 0 cached_sectors 512 stripe 0 stripe_redundancy 0
[ 85.627326] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627329] bcachefs: fs_usage_apply_warn() u64s 7 type alloc_v2 1:1502347:0 len 0 ver 0: gen 3 oldest_gen 3 data_type user read_time 77708356016 write_time 0 dirty_sectors 0 cached_sectors 256 stripe 0 stripe_redundancy 0
[ 85.627330] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627331] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627333] bcachefs: fs_usage_apply_warn() u64s 7 type alloc_v2 1:1673753:0 len 0 ver 0: gen 3 oldest_gen 3 data_type user read_time 55971974288 write_time 0 dirty_sectors 0 cached_sectors 208 stripe 0 stripe_redundancy 0
[ 85.627334] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627335] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627337] bcachefs: fs_usage_apply_warn() u64s 6 type alloc_v2 2:49084:0 len 0 ver 0: gen 1 oldest_gen 1 data_type user read_time 0 write_time 0 dirty_sectors 512 cached_sectors 0 stripe 0 stripe_redundancy 0
[ 85.627338] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627340] bcachefs: fs_usage_apply_warn() u64s 6 type alloc_v2 2:49084:0 len 0 ver 0: gen 1 oldest_gen 1 data_type user read_time 0 write_time 0 dirty_sectors 512 cached_sectors 0 stripe 0 stripe_redundancy 0
[ 85.627342] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627344] bcachefs: fs_usage_apply_warn() u64s 6 type alloc_v2 2:754631:0 len 0 ver 0: gen 2 oldest_gen 2 data_type user read_time 0 write_time 0 dirty_sectors 496 cached_sectors 0 stripe 0 stripe_redundancy 0
[ 85.627345] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627347] bcachefs: fs_usage_apply_warn() u64s 6 type alloc_v2 2:754631:0 len 0 ver 0: gen 2 oldest_gen 2 data_type user read_time 0 write_time 0 dirty_sectors 496 cached_sectors 0 stripe 0 stripe_redundancy 0
[ 85.627349] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627351] bcachefs: fs_usage_apply_warn() u64s 6 type alloc_v2 2:1843839:0 len 0 ver 0: gen 5 oldest_gen 5 data_type user read_time 0 write_time 0 dirty_sectors 24 cached_sectors 0 stripe 0 stripe_redundancy 0
[ 85.627352] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627353] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627355] bcachefs: fs_usage_apply_warn() u64s 6 type alloc_v2 3:34149:0 len 0 ver 0: gen 1 oldest_gen 1 data_type user read_time 0 write_time 0 dirty_sectors 193 cached_sectors 0 stripe 0 stripe_redundancy 0
[ 85.627356] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627360] bcachefs: fs_usage_apply_warn() u64s 6 type alloc_v2 3:34149:0 len 0 ver 0: gen 1 oldest_gen 1 data_type user read_time 0 write_time 0 dirty_sectors 192 cached_sectors 0 stripe 0 stripe_redundancy 0
[ 85.627361] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627373] bcachefs: fs_usage_apply_warn() u64s 6 type alloc_v2 3:1091068:0 len 0 ver 0: gen 4 oldest_gen 4 data_type user read_time 0 write_time 0 dirty_sectors 64 cached_sectors 0 stripe 0 stripe_redundancy 0
[ 85.627375] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627376] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627379] bcachefs: fs_usage_apply_warn() u64s 6 type alloc_v2 3:1759695:0 len 0 ver 0: gen 2 oldest_gen 2 data_type user read_time 0 write_time 0 dirty_sectors 400 cached_sectors 0 stripe 0 stripe_redundancy 0
[ 85.627381] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627383] bcachefs: fs_usage_apply_warn() u64s 6 type alloc_v2 3:1759695:0 len 0 ver 0: gen 2 oldest_gen 2 data_type user read_time 0 write_time 0 dirty_sectors 400 cached_sectors 0 stripe 0 stripe_redundancy 0
[ 85.627385] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627392] bcachefs: fs_usage_apply_warn() u64s 11 type reflink_v 0:16:0 len 8 ver 0: refcount: 2 crc: c_size 8 size 8 offset 0 nonce 0 csum 5 compress 0 ptr: 2:386371528 gen 2 ptr: 3:900963872 gen 2 ptr: 1:856961688 gen 3 cached ptr: 0:23393
[ 85.627393] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627399] bcachefs: fs_usage_apply_warn() u64s 11 type reflink_v 0:16:0 len 8 ver 0: refcount: 3 crc: c_size 8 size 8 offset 0 nonce 0 csum 5 compress 0 ptr: 2:386371528 gen 2 ptr: 3:900963872 gen 2 ptr: 1:856961688 gen 3 cached ptr: 0:23393
[ 85.627401] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627406] bcachefs: fs_usage_apply_warn() u64s 11 type reflink_v 0:224:0 len 8 ver 0: refcount: 2 crc: c_size 8 size 8 offset 0 nonce 0 csum 5 compress 0 ptr: 2:944046056 gen 5 ptr: 3:558626872 gen 4 ptr: 1:769202088 gen 3 cached ptr: 0:1952
[ 85.627408] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627413] bcachefs: fs_usage_apply_warn() u64s 11 type reflink_v 0:224:0 len 8 ver 0: refcount: 3 crc: c_size 8 size 8 offset 0 nonce 0 csum 5 compress 0 ptr: 2:944046056 gen 5 ptr: 3:558626872 gen 4 ptr: 1:769202088 gen 3 cached ptr: 0:1952
[ 85.627415] bcachefs: fs_usage_apply_warn() while inserting
[ 85.627422] bcachefs: fs_usage_apply_warn() u64s 12 type reflink_v 0:1792:0 len 128 ver 0: refcount: 10 crc: c_size 128 size 128 offset 0 nonce 0 csum 5 compress 0 ptr: 1:27225664 gen 1 cached ptr: 2:25131392 gen 1 crc: c_size 16 size 128 offs
[ 85.627424] bcachefs: fs_usage_apply_warn() overlapping with
[ 85.627430] bcachefs: fs_usage_apply_warn() u64s 12 type reflink_v 0:1792:0 len 128 ver 0: refcount: 11 crc: c_size 128 size 128 offset 0 nonce 0 csum 5 compress 0 ptr: 1:27225664 gen 1 cached ptr: 2:25131392 gen 1 crc: c_size 16 size 128 offs
[ 85.627440] ------------[ cut here ]------------
[ 85.627440] WARNING: CPU: 1 PID: 2428 at fs/bcachefs/buckets.c:1310 fs_usage_apply_warn+0x276/0x2a2
[ 85.627450] Modules linked in: ccm cmac algif_skcipher bnep iwlmvm mac80211 snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio snd_hda_intel intel_rapl_msr snd_intel_dspcfg intel_rapl_common snd_intel_sdw_acpi snd_hda_codec libarc4 uvcvideo snd_usb_audio edac_mce_amd iwlwifi snd_hda_core kvm_amd videobuf2_vmalloc videobuf2_memops snd_usbmidi_lib videobuf2_v4l2 snd_rawmidi videobuf2_common btusb snd_hwdep snd_seq_device btrtl videodev kvm snd_pcm btbcm btintel cfg80211 bluetooth r8169 mc realtek mdio_devres snd_timer of_mdio irqbypass rapl snd fixed_phy ecdh_generic libphy pcspkr wmi_bmof joydev mousedev rfkill soundcore ecc vfat k10temp fat i2c_piix4 gpio_amdpt gpio_generic mac_hid acpi_cpufreq fuse ext4 crc16 mbcache jbd2 dm_crypt cbc encrypted_keys trusted asn1_encoder tee tpm amdgpu usbhid drm_ttm_helper ttm gpu_sched i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec drm crct10dif_pclmul ccp crc32_pclmul crc32c_intel
[ 85.627522] ghash_clmulni_intel aesni_intel crypto_simd cryptd agpgart rng_core sp5100_tco xhci_pci xhci_pci_renesas wmi pinctrl_amd dm_mod
[ 85.627531] CPU: 1 PID: 2428 Comm: kactivitymanage Not tainted 5.13.1-gentoobcachefs #1
[ 85.627534] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B450M Pro4-F, BIOS P2.80 05/10/2021
[ 85.627536] RIP: 0010:fs_usage_apply_warn+0x276/0x2a2
[ 85.627552] Code: 28 48 89 44 24 28 e8 1b 8c 8c ff 4c 89 ea 48 c7 c6 70 db e5 95 48 c7 c7 87 3e 1c 96 e8 f5 27 ff ff 49 83 c4 18 e9 1f fe ff ff <0f> 0b 48 8b 84 24 f8 00 00 00 65 48 2b 04 25 28 00 00 00 74 05 e8
[ 85.627554] RSP: 0018:ffffb3bc85e238d0 EFLAGS: 00010246
[ 85.627557] RAX: ffff9ed9c891f9b0 RBX: ffffb3bc85e23d70 RCX: 000000000000001e
[ 85.627558] RDX: 000000000000001e RSI: 0000000000000000 RDI: 0000000000000000
[ 85.627560] RBP: ffffb3bc85e239f8 R08: 0000000000000000 R09: 0000000000000700
[ 85.627562] R10: ffffb3bc85e23707 R11: 0000000035f30383 R12: ffff9ed9c891f9b0
[ 85.627563] R13: ffffb3bc85e23900 R14: ffff9ed9c7ee0000 R15: ffff9ed9c891da40
[ 85.627565] FS: 00007fbc2d634000(0000) GS:ffff9ee0dea40000(0000) knlGS:0000000000000000
[ 85.627567] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 85.627568] CR2: 00007fbc258263b0 CR3: 000000011e79a000 CR4: 0000000000350ee0
[ 85.627570] Call Trace:
[ 85.627576] do_bch2_trans_commit+0xc7b/0x1330
[ 85.627582] ? bch2_trans_mark_extent+0x493/0x4c0
[ 85.627588] __bch2_trans_commit+0x4a4/0x730
[ 85.627592] bch2_btree_delete_range_trans+0x296/0x2e0
[ 85.627596] ? bch2_inode_rm+0x11e/0x3c0
[ 85.627600] bch2_inode_rm+0x11e/0x3c0
[ 85.627604] ? bch2_inode_rm+0xc7/0x3c0
[ 85.627609] ? evict+0xc1/0x170
[ 85.627612] evict+0xc1/0x170
[ 85.627616] do_unlinkat+0x210/0x320
[ 85.627619] do_syscall_64+0x3d/0x80
[ 85.627622] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 85.627626] RIP: 0033:0x7fbc3049e547
[ 85.627629] Code: f0 ff ff 73 01 c3 48 8b 0d 1e a9 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d f1 a8 0c 00 f7 d8 64 89 01 48
[ 85.627631] RSP: 002b:00007ffe53467918 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
[ 85.627634] RAX: ffffffffffffffda RBX: 00007ffe53467990 RCX: 00007fbc3049e547
[ 85.627636] RDX: 000055e13a5df940 RSI: 000055e13a63b350 RDI: 000055e13a5df958
[ 85.627638] RBP: 000055e13a63b350 R08: 0000000000000018 R09: 00000000000000f0
[ 85.627639] R10: 00007fbc303b80b0 R11: 0000000000000206 R12: 00007ffe53467920
[ 85.627641] R13: 00000000ffffffff R14: 00007ffe53467b58 R15: 00007ffe53467b60
[ 85.627646] ---[ end trace 8ef7d44eca0f8cc7 ]---
Full dmesg, mount options: rw,relatime,metadata_replicas=2,data_replicas=2,background_compression=lz4,foreground_target=ssd,background_target=hdd,promote_target=nvme,noinodes_32bit,fsck,fix_errors
, bcachefs patch: 7e96ce3
After an unmount and mount from #251 I got the following trace