]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Replace various occurrences of kstrndup() with kmemdup_nul()
authorTrond Myklebust <trondmy@gmail.com>
Sun, 2 Feb 2020 22:57:07 +0000 (17:57 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 3 Feb 2020 21:35:07 +0000 (16:35 -0500)
commita007b158a5613aca171fa17f61b81e93b5f7ac89
treea6abffd591fd5839936d4ce7e5f51b423c96e623
parent124906fa0d1a804e238ee94d16c88deb6ef576f8
NFS: Replace various occurrences of kstrndup() with kmemdup_nul()

When we already know the string length, it is more efficient to
use kmemdup_nul().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
[Anna - Changes to super.c were already made during fscontext conversion]
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dns_resolve.c
fs/nfs/nfs4namespace.c