diff options
| author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2025-08-29 19:15:12 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-19 17:29:55 +0300 |
| commit | 65ae0730b00a54ef40ec4c5eb8a6ecab07e31fe4 (patch) | |
| tree | b30e55bd9f89b727b3a70027aa13a5b51422c0d8 /fs/nfs | |
| parent | 330934d2177a7d5a434783873a75484b0cfa570f (diff) | |
| download | linux-65ae0730b00a54ef40ec4c5eb8a6ecab07e31fe4.tar.xz | |
NFSv4: Clear the NFS_CAP_XATTR flag if not supported by the server
[ Upstream commit 4fb2b677fc1f70ee642c0beecc3cabf226ef5707 ]
nfs_server_set_fsinfo() shouldn't assume that NFS_CAP_XATTR is unset
on entry to the function.
Fixes: b78ef845c35d ("NFSv4.2: query the server for extended attribute support")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/nfs')
| -rw-r--r-- | fs/nfs/client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 36025097d21b..2ca04dcb192a 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -859,6 +859,8 @@ static void nfs_server_set_fsinfo(struct nfs_server *server, if (fsinfo->xattr_support) server->caps |= NFS_CAP_XATTR; + else + server->caps &= ~NFS_CAP_XATTR; #endif } |
