OSDN Git Service

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)
commita8bd9ddf397be8e0d812ce3da4e40440ac25f6d0
treea6abffd591fd5839936d4ce7e5f51b423c96e623
parent10717f45639f6c1bc27b56405252c3a027406d92
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