Re: [PATCH v3 2/5] vfs: add xflags masks to fileattr API

From: koraynilay

Date: Sun Nov 29 2026 - 17:22:46 EST



> diff --git a/include/linux/fileattr.h b/include/linux/fileattr.h
> index 9a8de4190133..a5cbec020f16 100644
> --- a/include/linux/fileattr.h
> +++ b/include/linux/fileattr.h
> @@ -64,7 +64,8 @@ struct file_kattr {
> /* selectors: */
> bool flags_valid:1;
> bool fsx_valid:1;
> - bool has_masks:1;
> + bool has_masks:1; /* struct has valid masks (get, only out) */
My bad, this comment should be only /* struct has valid masks */, since
it should be true when the struct has masks, not only on get.
> + bool use_masks:1; /* equivalent to AT_FILEATTR_MASKS but for in-kernel calls (set, only in) */
> };
>
> int copy_fsxattr_to_user(const struct file_kattr *fa, struct fsxattr __user *ufa);


Attachment: signature.asc
Description: PGP signature