Re: [PATCH v2] xfs: annotate struct xfs_attr_list_context with __counted_by_ptr

From: Carlos Maiolino

Date: Wed Mar 18 2026 - 06:16:32 EST


On Mon, 16 Mar 2026 18:41:58 +0000, Bill Wendling wrote:
> Add the `__counted_by_ptr` attribute to the `buffer` field of `struct
> xfs_attr_list_context`. This field is used to point to a buffer of
> size `bufsize`.
>
> The `buffer` field is assigned in:
> 1. `xfs_ioc_attr_list` in `fs/xfs/xfs_handle.c`
> 2. `xfs_xattr_list` in `fs/xfs/xfs_xattr.c`
> 3. `xfs_getparents` in `fs/xfs/xfs_handle.c` (implicitly initialized to NULL)
>
> [...]

Applied to for-next, thanks!

[1/1] xfs: annotate struct xfs_attr_list_context with __counted_by_ptr
commit: e5966096d0856d071269cb5928d6bc33342d2dfd

Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>