Btrfs: enhance leak debug checker for extent state and extent buffer
authorLiu Bo <bo.li.liu@oracle.com>
Thu, 25 Jan 2018 18:02:48 +0000 (11:02 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:28 +0000 (15:09 +0200)
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>
fs/btrfs/extent_io.c

index dfeb74a0be77c92c525745c3352d3e72759b377d..5bd7ecefc2bc656ce826a708b1365931d63734d6 100644 (file)
@@ -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);
        }