Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965032AbbEOSg1 (ORCPT ); Fri, 15 May 2015 14:36:27 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:33452 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422873AbbEOSfr (ORCPT ); Fri, 15 May 2015 14:35:47 -0400 From: Pekka Enberg To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, Pekka Enberg , Anton Altaparmakov Subject: [PATCH 14/14] NTFS: Use kvfree() in ntfs_free() Date: Fri, 15 May 2015 21:35:23 +0300 Message-Id: <1431714923-23028-14-git-send-email-penberg@kernel.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1431714923-23028-1-git-send-email-penberg@kernel.org> References: <1431714923-23028-1-git-send-email-penberg@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 901 Lines: 34 Use kvfree() instead of open-coding it. Cc: Anton Altaparmakov Signed-off-by: Pekka Enberg --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/