btrfs: use kvzalloc to allocate btrfs_fs_info
[sfrench/cifs-2.6.git] / fs / btrfs / ctree.h
index 1a462ab85c49888a3962b026a74ede8c47182fc1..0f521ba5f2f9672ebdd1b0a4821ca0c000d716f4 100644 (file)
@@ -2974,7 +2974,7 @@ static inline void free_fs_info(struct btrfs_fs_info *fs_info)
        kfree(fs_info->super_copy);
        kfree(fs_info->super_for_commit);
        security_free_mnt_opts(&fs_info->security_opts);
-       kfree(fs_info);
+       kvfree(fs_info);
 }
 
 /* tree mod log functions from ctree.c */