nfs: fix regression in handling of fsc= option in NFSv4
authorChen Hanxiao <chenhx.fnst@fujitsu.com>
Wed, 31 Jan 2024 09:49:17 +0000 (17:49 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 28 Feb 2024 21:18:19 +0000 (16:18 -0500)
commit1443f76b26619d10ef5dcd08221faebfe93b04d8
treed8b2fc7ec39a85898d000d97f6a398789bb344b9
parent47f7c956327ff4ff4ddf1305e8571ce530157091
nfs: fix regression in handling of fsc= option in NFSv4

Setting the uniquifier for fscache via the fsc= mount
option is currently broken in NFSv4.

Fix this by passing fscache_uniq to root_fc if possible.

Signed-off-by: Chen Hanxiao <chenhx.fnst@fujitsu.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4super.c