]> www.infradead.org Git - users/hch/xfs.git/commit
nfs: fix bitmap decoder to handle a 3rd word
authorJeff Layton <jlayton@kernel.org>
Wed, 21 Aug 2024 12:28:25 +0000 (08:28 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 22 Aug 2024 21:01:10 +0000 (17:01 -0400)
commit95832998fb6edc50d4f2f6a958d9f90142d4be48
tree94ae5ecea5f733eb298703a8eb48d12b9d6aedd9
parentcb78f9b7d0c0c9f86d8c0ac9c46b8b684d8785a9
nfs: fix bitmap decoder to handle a 3rd word

It only decodes the first two words at this point. Have it decode the
third word as well. Without this, the client doesn't send delegated
timestamps in the CB_GETATTR response.

With this change we also need to expand the on-stack bitmap in
decode_recallany_args to 3 elements, in case the server sends a larger
bitmap than expected.

Fixes: 43df7110f4a9 ("NFSv4: Add CB_GETATTR support for delegated attributes")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/callback_xdr.c