linux/fs/btrfs
Josef Bacik bd647ce385 btrfs: add a leak check for roots
Now that we're going to start relying on getting ref counting right for
roots, add a list to track allocated roots and print out any roots that
aren't freed up at free_fs_info time.

Hide this behind CONFIG_BTRFS_DEBUG because this will just be used for
developers to verify they aren't breaking things.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2020-03-23 17:01:33 +01:00
..
tests btrfs: add a leak check for roots 2020-03-23 17:01:33 +01:00
acl.c
async-thread.c
async-thread.h
backref.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
backref.h
block-group.c btrfs: fix removal of raid[56|1c34} incompat flags after removing block group 2020-03-20 21:31:32 +01:00
block-group.h btrfs: Move and unexport btrfs_rmap_block 2020-01-23 17:24:34 +01:00
block-rsv.c btrfs: add a comment describing block reserves 2020-03-23 17:01:26 +01:00
block-rsv.h
btrfs_inode.h btrfs: introduce per-inode file extent tree 2020-03-23 17:01:24 +01:00
check-integrity.c btrfs: remove superfluous BUG_ON() in integrity checks 2020-01-20 16:40:52 +01:00
check-integrity.h
compression.c btrfs: use larger zlib buffer for s390 hardware compression 2020-01-31 10:30:40 -08:00
compression.h
ctree.c Btrfs: don't iterate mod seq list when putting a tree mod seq 2020-03-23 17:01:23 +01:00
ctree.h btrfs: add a leak check for roots 2020-03-23 17:01:33 +01:00
delalloc-space.c btrfs: add a comment describing delalloc space reservation 2020-03-23 17:01:27 +01:00
delalloc-space.h
delayed-inode.c btrfs: use the file extent tree infrastructure 2020-03-23 17:01:24 +01:00
delayed-inode.h
delayed-ref.c Btrfs: fix race between adding and putting tree mod seq elements and nodes 2020-01-31 14:01:20 +01:00
delayed-ref.h
dev-replace.c btrfs: Add overview of device replace 2020-03-23 17:01:23 +01:00
dev-replace.h
dir-item.c
discard.c btrfs: add correction to handle -1 edge case in async discard 2020-01-20 16:41:01 +01:00
discard.h btrfs: have multiple discard lists 2020-01-20 16:41:00 +01:00
disk-io.c btrfs: add a leak check for roots 2020-03-23 17:01:33 +01:00
disk-io.h btrfs: add a leak check for roots 2020-03-23 17:01:33 +01:00
export.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
export.h
extent_io.c btrfs: introduce per-inode file extent tree 2020-03-23 17:01:24 +01:00
extent_io.h btrfs: drop create parameter to btrfs_get_extent() 2020-01-20 16:40:55 +01:00
extent_map.c Btrfs: fix race between using extent maps and merging them 2020-02-12 17:16:46 +01:00
extent_map.h btrfs: remove extent_map::bdev 2019-11-18 23:43:44 +01:00
extent-io-tree.h btrfs: introduce per-inode file extent tree 2020-03-23 17:01:24 +01:00
extent-tree.c btrfs: handle logged extent failure properly 2020-02-19 00:39:08 +01:00
file-item.c btrfs: introduce per-inode file extent tree 2020-03-23 17:01:24 +01:00
file.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
free-space-cache.c btrfs: ensure removal of discardable_* in free_bitmap() 2020-01-20 16:41:01 +01:00
free-space-cache.h btrfs: have multiple discard lists 2020-01-20 16:41:00 +01:00
free-space-tree.c btrfs: use btrfs_put_fs_root to free roots always 2020-03-23 17:01:32 +01:00
free-space-tree.h btrfs: rename btrfs_block_group_cache 2019-11-18 17:51:51 +01:00
inode-item.c
inode-map.c btrfs: keep track of which extents have been discarded 2020-01-20 16:40:57 +01:00
inode-map.h
inode.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
ioctl.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
Kconfig btrfs: add Kconfig dependency for BLAKE2B 2019-12-09 17:56:06 +01:00
locking.c btrfs: document extent buffer locking 2019-11-18 17:51:50 +01:00
locking.h
lzo.c
Makefile btrfs: add the beginning of async discard, discard workqueue 2020-01-20 16:40:57 +01:00
misc.h
ordered-data.c btrfs: delete the ordered isize update code 2020-03-23 17:01:24 +01:00
ordered-data.h btrfs: delete the ordered isize update code 2020-03-23 17:01:24 +01:00
orphan.c
print-tree.c btrfs: Remove unneeded semicolon 2020-01-20 16:40:55 +01:00
print-tree.h
props.c
props.h
qgroup.c btrfs: use btrfs_put_fs_root to free roots always 2020-03-23 17:01:32 +01:00
qgroup.h btrfs: destroy qgroup extent records on transaction abort 2020-02-19 00:35:54 +01:00
raid56.c btrfs: remove pointless local variable in lock_stripe_add() 2019-11-18 12:47:00 +01:00
raid56.h
rcu-string.h
reada.c btrfs: rename btrfs_block_group_cache 2019-11-18 17:51:51 +01:00
ref-verify.c btrfs: ref-verify: fix memory leaks 2020-02-12 17:16:31 +01:00
ref-verify.h
relocation.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
root-tree.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
scrub.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
send.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
send.h
space-info.c btrfs: describe the space reservation system in general 2020-03-23 17:01:27 +01:00
space-info.h btrfs: take overcommit into account in inc_block_group_ro 2020-01-31 14:02:01 +01:00
struct-funcs.c
super.c btrfs: make the init of static elements in fs_info separate 2020-03-23 17:01:33 +01:00
sysfs.c btrfs: sysfs, move device id directories to UUID/devinfo 2020-02-12 18:28:22 +01:00
sysfs.h btrfs: sysfs, add devid/dev_state kobject and device attributes 2020-01-23 17:24:36 +01:00
transaction.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
transaction.h
tree-checker.c btrfs: tree-checker: Verify location key for DIR_ITEM/DIR_INDEX 2020-01-20 16:40:56 +01:00
tree-checker.h
tree-defrag.c
tree-log.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
tree-log.h
ulist.c
ulist.h
uuid-tree.c btrfs: handle ENOENT in btrfs_uuid_tree_iterate 2019-12-13 14:10:45 +01:00
volumes.c btrfs: push btrfs_grab_fs_root into btrfs_get_fs_root 2020-03-23 17:01:32 +01:00
volumes.h for-5.6-rc1-tag 2020-02-16 11:43:45 -08:00
xattr.c
xattr.h
zlib.c btrfs: use larger zlib buffer for s390 hardware compression 2020-01-31 10:30:40 -08:00
zstd.c