summaryrefslogtreecommitdiff
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-07-30 02:55:42 +0400
committerDavid Sterba <dsterba@suse.cz>2014-10-02 19:30:29 +0400
commit97eb6b69d1e856cb5e1cf2c3d94afab643e93128 (patch)
treec5dd782e9ba00f1eb902850b81fe76ba73a5c328 /fs/btrfs/super.c
parentaf13b4922b057b4ebc7e2315a6f666ecb65890e4 (diff)
downloadlinux-97eb6b69d1e856cb5e1cf2c3d94afab643e93128.tar.xz
btrfs: use slab for end_io_wq structures
The structure is frequently reused. Rename it according to the slab name. Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index b915d7704f19..4685b9704f15 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -2001,10 +2001,14 @@ static int __init init_btrfs_fs(void)
if (err)
goto free_delayed_ref;
- err = btrfs_interface_init();
+ err = btrfs_end_io_wq_init();
if (err)
goto free_prelim_ref;
+ err = btrfs_interface_init();
+ if (err)
+ goto free_end_io_wq;
+
btrfs_init_lockdep();
btrfs_print_info();
@@ -2021,6 +2025,8 @@ static int __init init_btrfs_fs(void)
unregister_ioctl:
btrfs_interface_exit();
+free_end_io_wq:
+ btrfs_end_io_wq_exit();
free_prelim_ref:
btrfs_prelim_ref_exit();
free_delayed_ref: