NFS: Create a new nfs_alloc_fattr_with_label() function
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 22 Oct 2021 17:11:00 +0000 (13:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:23:17 +0000 (10:23 +0200)
commit29b51ae02df50647ff90b3b2a6c8e28f99d52abc
tree4b8e9fef336fa8705e802798dcd5ca0f3a55e4fa
parent00fa80189c979f7aa0d4927852879e20da60b231
NFS: Create a new nfs_alloc_fattr_with_label() function

[ Upstream commit d755ad8dc752d44545613ea04d660aed674e540d ]

For creating fattrs with the label field already allocated for us. I
also update nfs_free_fattr() to free the label in the end.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/getroot.c
fs/nfs/inode.c
fs/nfs/internal.h
include/linux/nfs_fs.h