提交 b0cbeee7 编写于 作者: P Pekka Enberg 提交者: Linus Torvalds

NTFS: use kvfree() in ntfs_free()

Use kvfree() instead of open-coding it.
Signed-off-by: NPekka Enberg <penberg@kernel.org>
Cc: Anton Altaparmakov <anton@tuxera.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 c3cddc4c
...@@ -85,12 +85,7 @@ static inline void *ntfs_malloc_nofs_nofail(unsigned long size) ...@@ -85,12 +85,7 @@ static inline void *ntfs_malloc_nofs_nofail(unsigned long size)
static inline void ntfs_free(void *addr) static inline void ntfs_free(void *addr)
{ {
if (!is_vmalloc_addr(addr)) { kvfree(addr);
kfree(addr);
/* free_page((unsigned long)addr); */
return;
}
vfree(addr);
} }
#endif /* _LINUX_NTFS_MALLOC_H */ #endif /* _LINUX_NTFS_MALLOC_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册