aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-08-01 18:50:16 +0200
committerDavid Sterba <dsterba@suse.com>2019-09-09 14:59:07 +0200
commit5b28692e0c4ffb7266d359f0d54155156cdfe0a2 (patch)
tree317a0b91c521c47587459e9dac1afbf3a6b2aefa /fs/btrfs/volumes.c
parentbtrfs: sysfs: replace direct access to feature set names with a helper (diff)
downloadlinux-dev-5b28692e0c4ffb7266d359f0d54155156cdfe0a2.tar.xz
linux-dev-5b28692e0c4ffb7266d359f0d54155156cdfe0a2.zip
btrfs: factor out sysfs code for sending device uevent
The device uevent belongs to the sysfs API. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
-rw-r--r--fs/btrfs/volumes.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 8031b47cb380..830e4b0b5957 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -358,19 +358,6 @@ static void free_fs_devices(struct btrfs_fs_devices *fs_devices)
kfree(fs_devices);
}
-static void btrfs_kobject_uevent(struct block_device *bdev,
- enum kobject_action action)
-{
- int ret;
-
- ret = kobject_uevent(&disk_to_dev(bdev->bd_disk)->kobj, action);
- if (ret)
- pr_warn("BTRFS: Sending event '%d' to kobject: '%s' (%p): failed\n",
- action,
- kobject_name(&disk_to_dev(bdev->bd_disk)->kobj),
- &disk_to_dev(bdev->bd_disk)->kobj);
-}
-
void __exit btrfs_cleanup_fs_uuids(void)
{
struct btrfs_fs_devices *fs_devices;