Skip to content

Commit

Permalink
NTFS: use kvfree() in ntfs_free()
Browse files Browse the repository at this point in the history
Use kvfree() instead of open-coding it.

Signed-off-by: Pekka Enberg <[email protected]>
Cc: Anton Altaparmakov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
penberg authored and torvalds committed Jun 25, 2015
1 parent c3cddc4 commit b0cbeee
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fs/ntfs/malloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit b0cbeee

Please sign in to comment.