diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-20 12:52:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-20 12:52:35 -0400 |
commit | f49aa1de98363b6c5fba4637678d6b0ba3d18065 (patch) | |
tree | f02df2090c2d5baf0276ab6fa53c80db783c4765 /fs/btrfs/sysfs.c | |
parent | 78e03651849fd3e8aa9ab3288bc1d3726c4c6129 (diff) | |
parent | 4e9845eff5a8027b5181d5bff56a02991fe46d48 (diff) |
Merge tag 'for-5.2-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fixes from David Sterba:
"Notable highlights:
- fixes for some long-standing bugs in fsync that were quite hard to
catch but now finaly fixed
- some fixups to error handling paths that did not properly clean up
(locking, memory)
- fix to space reservation for inheriting properties"
* tag 'for-5.2-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
Btrfs: tree-checker: detect file extent items with overlapping ranges
Btrfs: fix race between ranged fsync and writeback of adjacent ranges
Btrfs: avoid fallback to transaction commit during fsync of files with holes
btrfs: extent-tree: Fix a bug that btrfs is unable to add pinned bytes
btrfs: sysfs: don't leak memory when failing add fsid
btrfs: sysfs: Fix error path kobject memory leak
Btrfs: do not abort transaction at btrfs_update_root() after failure to COW path
btrfs: use the existing reserved items for our first prop for inheritance
btrfs: don't double unlock on error in btrfs_punch_hole
btrfs: Check the compression level before getting a workspace
Diffstat (limited to 'fs/btrfs/sysfs.c')
-rw-r--r-- | fs/btrfs/sysfs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index 5a5930e3d32b..2f078b77fe14 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c | |||
@@ -825,7 +825,12 @@ int btrfs_sysfs_add_fsid(struct btrfs_fs_devices *fs_devs, | |||
825 | fs_devs->fsid_kobj.kset = btrfs_kset; | 825 | fs_devs->fsid_kobj.kset = btrfs_kset; |
826 | error = kobject_init_and_add(&fs_devs->fsid_kobj, | 826 | error = kobject_init_and_add(&fs_devs->fsid_kobj, |
827 | &btrfs_ktype, parent, "%pU", fs_devs->fsid); | 827 | &btrfs_ktype, parent, "%pU", fs_devs->fsid); |
828 | return error; | 828 | if (error) { |
829 | kobject_put(&fs_devs->fsid_kobj); | ||
830 | return error; | ||
831 | } | ||
832 | |||
833 | return 0; | ||
829 | } | 834 | } |
830 | 835 | ||
831 | int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info) | 836 | int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info) |