Commit 4fb2b677 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Clear the NFS_CAP_XATTR flag if not supported by the server



nfs_server_set_fsinfo() shouldn't assume that NFS_CAP_XATTR is unset
on entry to the function.

Fixes: b78ef845 ("NFSv4.2: query the server for extended attribute support")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent b3ac3343
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -888,6 +888,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
}