diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2018-01-25 11:02:48 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 15:09:28 +0200 |
commit | af2679e4a7f68f5b99593f61e9cdb8b5b69b0bec (patch) | |
tree | d1bbd01d6cd5678a45b7ab451d3bd690336336bd /fs/btrfs/extent_io.c | |
parent | 3eb2ce825ea1ad89d20f7a3b5780df850e4be274 (diff) | |
download | linux-stable-af2679e4a7f68f5b99593f61e9cdb8b5b69b0bec.tar.gz linux-stable-af2679e4a7f68f5b99593f61e9cdb8b5b69b0bec.tar.bz2 linux-stable-af2679e4a7f68f5b99593f61e9cdb8b5b69b0bec.zip |
Btrfs: enhance leak debug checker for extent state and extent buffer
This prints out eb->bflags since it contains some useful information,
e.g. whether eb is dirty.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index dfeb74a0be77..5bd7ecefc2bc 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -76,8 +76,8 @@ void btrfs_leak_debug_check(void) while (!list_empty(&buffers)) { eb = list_entry(buffers.next, struct extent_buffer, leak_list); - pr_err("BTRFS: buffer leak start %llu len %lu refs %d\n", - eb->start, eb->len, atomic_read(&eb->refs)); + pr_err("BTRFS: buffer leak start %llu len %lu refs %d bflags %lu\n", + eb->start, eb->len, atomic_read(&eb->refs), eb->bflags); list_del(&eb->leak_list); kmem_cache_free(extent_buffer_cache, eb); } |