summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorDavid Sterba2018-02-19 17:24:15 +0100
committerDavid Sterba2018-03-26 15:09:39 +0200
commitffc5a3794f9779c1a09e18e6d75bb6cc22b37523 (patch)
tree05b910833b1a690a4c29c8b9c6ba9479898d8377 /fs/btrfs/volumes.c
parentbtrfs: verify subvolid mount parameter (diff)
downloadkernel-qcow2-linux-ffc5a3794f9779c1a09e18e6d75bb6cc22b37523.tar.gz
kernel-qcow2-linux-ffc5a3794f9779c1a09e18e6d75bb6cc22b37523.tar.xz
kernel-qcow2-linux-ffc5a3794f9779c1a09e18e6d75bb6cc22b37523.zip
btrfs: add (the only possible) __exit annotation
Recently, the __init annotations have been added. There's unfortunatelly only one case where we can add __exit, because most of the cleanup helpers are also called from the __init phase. As the __exit annotated functions get discarded completely for a built-in code, we'd miss them from the init phase. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 2c0c08ec987a..797e7706e67b 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -279,7 +279,7 @@ static void btrfs_kobject_uevent(struct block_device *bdev,
&disk_to_dev(bdev->bd_disk)->kobj);
}
-void btrfs_cleanup_fs_uuids(void)
+void __exit btrfs_cleanup_fs_uuids(void)
{
struct btrfs_fs_devices *fs_devices;