projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3cddc4
)
NTFS: use kvfree() in ntfs_free()
author
Pekka Enberg
<penberg@kernel.org>
Wed, 24 Jun 2015 23:54:48 +0000
(16:54 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 25 Jun 2015 00:49:38 +0000
(17:49 -0700)
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>
fs/ntfs/malloc.h
patch
|
blob
|
history
diff --git
a/fs/ntfs/malloc.h
b/fs/ntfs/malloc.h
index
a44b14c
..
ab172e5
100644
(file)
--- 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 */