diff options
| author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2025-08-29 09:15:12 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-19 16:32:02 +0200 |
| commit | 781ec30354e62e757f5f8f78eba8be764a99585d (patch) | |
| tree | 8c379b4adda9a7b20372ffdfd306daa88eb58ef0 /fs | |
| parent | b39234ede5456c900ea66e35d183ec251f0474f9 (diff) | |
| download | linux-781ec30354e62e757f5f8f78eba8be764a99585d.tar.gz linux-781ec30354e62e757f5f8f78eba8be764a99585d.tar.bz2 linux-781ec30354e62e757f5f8f78eba8be764a99585d.zip | |
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')
| -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 cc764da581c4..1bcdaee7e856 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -873,6 +873,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 } |
