From: Pekka Enberg Date: Wed, 24 Jun 2015 23:54:48 +0000 (-0700) Subject: NTFS: use kvfree() in ntfs_free() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0cbeee72f88996678fff672a75bd845b7ad7034;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git NTFS: use kvfree() in ntfs_free() Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg Cc: Anton Altaparmakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ntfs/malloc.h b/fs/ntfs/malloc.h index a44b14cbceeb..ab172e5f51d9 100644 --- a/fs/ntfs/malloc.h +++ b/fs/ntfs/malloc.h @@ -85,12 +85,7 @@ static inline void *ntfs_malloc_nofs_nofail(unsigned long size) static inline void ntfs_free(void *addr) { - if (!is_vmalloc_addr(addr)) { - kfree(addr); - /* free_page((unsigned long)addr); */ - return; - } - vfree(addr); + kvfree(addr); } #endif /* _LINUX_NTFS_MALLOC_H */