btrfs: Drop __exit attribute on btrfs_exit_compress
authorAlexey Charkov <alchark@gmail.com>
Wed, 2 Feb 2011 21:15:35 +0000 (21:15 +0000)
committerChris Mason <chris.mason@oracle.com>
Sun, 6 Feb 2011 12:19:19 +0000 (07:19 -0500)
As this function is called in some error paths while not
removing the module, the __exit attribute prevents the kernel
image from linking when btrfs is compiled in statically.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/compression.c

index 3a932f183da14e90b9714bed91c49b2563be05a3..4d2110eafe2927e455e1e6a107019d7c2b483676 100644 (file)
@@ -921,7 +921,7 @@ int btrfs_decompress(int type, unsigned char *data_in, struct page *dest_page,
        return ret;
 }
 
-void __exit btrfs_exit_compress(void)
+void btrfs_exit_compress(void)
 {
        free_workspaces();
 }