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>
This commit is contained in:
Wang Shilong
2014-11-22 21:13:10 +08:00
committed by David Sterba
parent 01d58472a8
commit f749303bda
2 changed files with 4 additions and 14 deletions

View File

@@ -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);
}