Re: [PATCH] ext4: use kmemdup_nul() instead of kstrndup()

2020-08-17 Thread Jan Kara
On Sat 08-08-20 09:45:36, Xianting Tian wrote: > kmemdup_nul() is more efficient than kmemdup_nul() if > the size is known exactly. > > The description of kstrndup() already suggested: > Note: Use kmemdup_nul() instead if the size is known exactly. > > Signed-off-by: Xianting Tian Thanks for

[PATCH] ext4: use kmemdup_nul() instead of kstrndup()

2020-08-08 Thread Xianting Tian
kmemdup_nul() is more efficient than kmemdup_nul() if the size is known exactly. The description of kstrndup() already suggested: Note: Use kmemdup_nul() instead if the size is known exactly. Signed-off-by: Xianting Tian --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)