summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/check-integrity.c
diff options
context:
space:
mode:
authorWang Shilong <wangshilong1991@gmail.com>2014-11-22 14:13:10 +0100
committerDavid Sterba <dsterba@suse.cz>2015-02-16 18:48:43 +0100
commitf749303bda20392e1d4a10adda84524365afd0e6 (patch)
tree3e0856badb4fcfb0f579f42ed1066b15052b4853 /fs/btrfs/check-integrity.c
parentBtrfs: disk-io: replace root args iff only fs_info used (diff)
downloadlinux-f749303bda20392e1d4a10adda84524365afd0e6.tar.xz
linux-f749303bda20392e1d4a10adda84524365afd0e6.zip
Btrfs: switch to kvfree() helper
A new helper kvfree() in mm/utils.c will do this. Signed-off-by: Wang Shilong <wangshilong1991@gmail.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/check-integrity.c')
-rw-r--r--fs/btrfs/check-integrity.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c
index d897ef803b3b..77ba1634c9ab 100644
--- a/fs/btrfs/check-integrity.c
+++ b/fs/btrfs/check-integrity.c
@@ -3241,8 +3241,5 @@ void btrfsic_unmount(struct btrfs_root *root,
mutex_unlock(&btrfsic_mutex);
- if (is_vmalloc_addr(state))
- vfree(state);
- else
- kfree(state);
+ kvfree(state);
}