lkml.org 
[lkml]   [2015]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 14/14] NTFS: Use kvfree() in ntfs_free()
Date
Use kvfree() instead of open-coding it.

Cc: Anton Altaparmakov <anton@tuxera.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
---
fs/ntfs/malloc.h | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/fs/ntfs/malloc.h b/fs/ntfs/malloc.h
index a44b14c..ab172e5 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 */
--
2.1.0


\
 
 \ /
  Last update: 2015-05-15 20:41    [W:0.182 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site