diff options
author | Pekka Enberg <penberg@kernel.org> | 2015-06-24 19:54:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-24 20:49:38 -0400 |
commit | b0cbeee72f88996678fff672a75bd845b7ad7034 (patch) | |
tree | d4f16d3cd62fad86dd5303104f60946cc781cfc1 /fs/ntfs | |
parent | c3cddc4c296c3a1498df7181015cbcea178a0546 (diff) |
NTFS: use kvfree() in ntfs_free()
Use kvfree() instead of open-coding it.
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Cc: Anton Altaparmakov <anton@tuxera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ntfs')
-rw-r--r-- | fs/ntfs/malloc.h | 7 |
1 files changed, 1 insertions, 6 deletions
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) | |||
85 | 85 | ||
86 | static inline void ntfs_free(void *addr) | 86 | static inline void ntfs_free(void *addr) |
87 | { | 87 | { |
88 | if (!is_vmalloc_addr(addr)) { | 88 | kvfree(addr); |
89 | kfree(addr); | ||
90 | /* free_page((unsigned long)addr); */ | ||
91 | return; | ||
92 | } | ||
93 | vfree(addr); | ||
94 | } | 89 | } |
95 | 90 | ||
96 | #endif /* _LINUX_NTFS_MALLOC_H */ | 91 | #endif /* _LINUX_NTFS_MALLOC_H */ |