Star64_linux/fs/btrfs
Anand Jain 1f6087e69c btrfs: sysfs, use btrfs_sysfs_remove_fsid to celanup errors in add_fsid
We have one simple function btrfs_sysfs_remove_fsid() to undo
btrfs_sysfs_add_fsid(), which also does proper checks before releasing
objects.

One difference, if btrfs_sysfs_remove_fsid is used that now we also call
kobject_del() which was missing before. This was tested (with kobject
debug turned on) and no change in behaviour was found.

This is a cleanup patch.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2020-03-23 17:01:35 +01:00
..
tests btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +01:00
acl.c
async-thread.c
async-thread.h
backref.c btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +01:00
backref.h
block-group.c btrfs: add wrapper for transaction abort predicate 2020-03-23 17:01:34 +01:00
block-group.h
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
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: move root node locking helpers to locking.c 2020-03-23 17:01:33 +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: add wrapper for transaction abort predicate 2020-03-23 17:01:34 +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
discard.h
disk-io.c btrfs: sink argument tree to extent_read_full_page 2020-03-23 17:01:35 +01:00
disk-io.h btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +01:00
export.c btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +01:00
export.h
extent-io-tree.h btrfs: introduce per-inode file extent tree 2020-03-23 17:01:24 +01:00
extent-tree.c btrfs: add wrapper for transaction abort predicate 2020-03-23 17:01:34 +01:00
extent_io.c btrfs: sink argument tree to __do_readpage 2020-03-23 17:01:35 +01:00
extent_io.h btrfs: sink argument tree to extent_read_full_page 2020-03-23 17:01:35 +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
file-item.c btrfs: introduce per-inode file extent tree 2020-03-23 17:01:24 +01:00
file.c btrfs: drop argument tree from btrfs_lock_and_flush_ordered_range 2020-03-23 17:01:34 +01:00
free-space-cache.c
free-space-cache.h
free-space-tree.c btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +01:00
free-space-tree.h
inode-item.c
inode-map.c
inode-map.h
inode.c btrfs: sink argument tree to extent_read_full_page 2020-03-23 17:01:35 +01:00
ioctl.c btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +01:00
Kconfig
locking.c btrfs: move root node locking helpers to locking.c 2020-03-23 17:01:33 +01:00
locking.h
lzo.c
Makefile
misc.h
ordered-data.c btrfs: drop argument tree from btrfs_lock_and_flush_ordered_range 2020-03-23 17:01:34 +01:00
ordered-data.h btrfs: drop argument tree from btrfs_lock_and_flush_ordered_range 2020-03-23 17:01:34 +01:00
orphan.c
print-tree.c
print-tree.h
props.c
props.h
qgroup.c btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +01:00
qgroup.h btrfs: destroy qgroup extent records on transaction abort 2020-02-19 00:35:54 +01:00
raid56.c
raid56.h
rcu-string.h
reada.c
ref-verify.c btrfs: ref-verify: fix memory leaks 2020-02-12 17:16:31 +01:00
ref-verify.h
relocation.c btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +01:00
root-tree.c btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +01:00
scrub.c btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +01:00
send.c btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +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: add wrapper for transaction abort predicate 2020-03-23 17:01:34 +01:00
sysfs.c btrfs: sysfs, use btrfs_sysfs_remove_fsid to celanup errors in add_fsid 2020-03-23 17:01:35 +01:00
sysfs.h
transaction.c btrfs: add wrapper for transaction abort predicate 2020-03-23 17:01:34 +01:00
transaction.h btrfs: add wrapper for transaction abort predicate 2020-03-23 17:01:34 +01:00
tree-checker.c
tree-checker.h
tree-defrag.c
tree-log.c btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +01:00
tree-log.h
ulist.c
ulist.h
uuid-tree.c
volumes.c btrfs: rename btrfs_put_fs_root and btrfs_grab_fs_root 2020-03-23 17:01:33 +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