Skip to content

Commit b0cbeee

Browse files
penbergtorvalds
authored andcommitted
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>
1 parent c3cddc4 commit b0cbeee

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎fs/ntfs/malloc.h‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,7 @@ static inline void *ntfs_malloc_nofs_nofail(unsigned long size)
8585

8686
static inline void ntfs_free(void *addr)
8787
{
88-
if (!is_vmalloc_addr(addr)) {
89-
kfree(addr);
90-
/* free_page((unsigned long)addr); */
91-
return;
92-
}
93-
vfree(addr);
88+
kvfree(addr);
9489
}
9590

9691
#endif /* _LINUX_NTFS_MALLOC_H */

0 commit comments

Comments
 (0)