diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-03-26 16:24:23 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:01 -0400 |
commit | 2d2ae547979854d10b75d557b3abdb3eb7511bbc (patch) | |
tree | 9a3bab510a9fadb2b8be27497041675ad0108938 /fs/btrfs/extent_io.h | |
parent | 83041add611056e830e29fda913029e37e857239 (diff) |
Btrfs: Add leak debugging for extent_buffer and extent_state
This also fixes one leak around the super block when failing to mount the
FS.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 8b5319db2516..16d67a61a25c 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h | |||
@@ -66,7 +66,7 @@ struct extent_state { | |||
66 | /* for use by the FS */ | 66 | /* for use by the FS */ |
67 | u64 private; | 67 | u64 private; |
68 | 68 | ||
69 | struct list_head list; | 69 | struct list_head leak_list; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | struct extent_buffer { | 72 | struct extent_buffer { |
@@ -80,6 +80,7 @@ struct extent_buffer { | |||
80 | struct list_head lru; | 80 | struct list_head lru; |
81 | atomic_t refs; | 81 | atomic_t refs; |
82 | int flags; | 82 | int flags; |
83 | struct list_head leak_list; | ||
83 | }; | 84 | }; |
84 | 85 | ||
85 | struct extent_map_tree; | 86 | struct extent_map_tree; |