aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2021-03-11 14:31:13 +0000
committerDavid Sterba <dsterba@suse.com>2021-04-19 17:25:17 +0200
commitffbc10a144313d49d588e7e8a005294bad3b807b (patch)
tree7e52f4c91f332032d9ef3fdff6daf5cd2a071b5f
parentbtrfs: add and use helper to get lowest sequence number for the tree mod log (diff)
downloadlinux-dev-ffbc10a144313d49d588e7e8a005294bad3b807b.tar.xz
linux-dev-ffbc10a144313d49d588e7e8a005294bad3b807b.zip
btrfs: update debug message when checking seq number of a delayed ref
We used to encode two different numbers in the tree mod log counter used for sequence numbers, one in the upper 32 bits and the other one in the lower 32 bits. However that is no longer the case, we stopped doing that since commit fcebe4562dec83 ("Btrfs: rework qgroup accounting"). So update the debug message at btrfs_check_delayed_seq to stop extracting the two 32 bits counters and print instead the 64 bits sequence numbers. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/delayed-ref.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/delayed-ref.c b/fs/btrfs/delayed-ref.c
index 1c46d9b497bc..c92d9d4f5f46 100644
--- a/fs/btrfs/delayed-ref.c
+++ b/fs/btrfs/delayed-ref.c
@@ -514,9 +514,8 @@ int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info, u64 seq)
if (min_seq != 0 && seq >= min_seq) {
btrfs_debug(fs_info,
- "holding back delayed_ref %#x.%x, lowest is %#x.%x",
- (u32)(seq >> 32), (u32)seq,
- (u32)(min_seq >> 32), (u32)min_seq);
+ "holding back delayed_ref %llu, lowest is %llu",
+ seq, min_seq);
ret = 1;
}