All of lore.kernel.org
 help / color / mirror / Atom feed
* [f2fs-dev] [PATCH -next] f2fs: Replace kmalloc() with f2fs_kmalloc
@ 2022-08-01  9:22 ` studentxswpy
  0 siblings, 0 replies; 16+ messages in thread
From: studentxswpy @ 2022-08-01  9:22 UTC (permalink / raw)
  To: jaegeuk, chao, linux-f2fs-devel, linux-kernel; +Cc: Hacash Robot, Xie Shaowen

From: Xie Shaowen <studentxswpy@163.com>

replace kmalloc with f2fs_kmalloc to keep f2fs code consistency.

Reported-by: Hacash Robot <hacashRobot@santino.com>
Signed-off-by: Xie Shaowen <studentxswpy@163.com>
---
 fs/f2fs/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index d5bd7932fb64..712b51f69c04 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -232,7 +232,7 @@ static int f2fs_match_ci_name(const struct inode *dir, const struct qstr *name,
 		if (WARN_ON_ONCE(!fscrypt_has_encryption_key(dir)))
 			return -EINVAL;
 
-		decrypted_name.name = kmalloc(de_name_len, GFP_KERNEL);
+		decrypted_name.name = f2fs_kmalloc(de_name_len, GFP_KERNEL);
 		if (!decrypted_name.name)
 			return -ENOMEM;
 		res = fscrypt_fname_disk_to_usr(dir, 0, 0, &encrypted_name,
-- 
2.25.1



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-08-07  8:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-01  9:22 [f2fs-dev] [PATCH -next] f2fs: Replace kmalloc() with f2fs_kmalloc studentxswpy
2022-08-01  9:22 ` studentxswpy
2022-08-01 18:23 ` [f2fs-dev] " Christoph Hellwig
2022-08-01 18:23   ` Christoph Hellwig
2022-08-02  1:42   ` [f2fs-dev] " Joe Perches
2022-08-02  1:42     ` Joe Perches
2022-08-04  3:54     ` [f2fs-dev] " Jaegeuk Kim
2022-08-04  3:54       ` Jaegeuk Kim
2022-08-04 13:50       ` [f2fs-dev] " Chao Yu
2022-08-04 13:50         ` Chao Yu
2022-08-04  3:56 ` [f2fs-dev] " Jaegeuk Kim
2022-08-04  3:56   ` Jaegeuk Kim
2022-08-07  8:29 ` [f2fs-dev] " kernel test robot
2022-08-07  8:29   ` kernel test robot
2022-08-07  8:29 ` [f2fs-dev] " kernel test robot
2022-08-07  8:29   ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.