linux-stable/fs/vboxsf
Jeff Layton 0d72b92883 fs: pass the request_mask to generic_fillattr
generic_fillattr just fills in the entire stat struct indiscriminately
today, copying data from the inode. There is at least one attribute
(STATX_CHANGE_COOKIE) that can have side effects when it is reported,
and we're looking at adding more with the addition of multigrain
timestamps.

Add a request_mask argument to generic_fillattr and have most callers
just pass in the value that is passed to getattr. Have other callers
(e.g. ksmbd) just pass in STATX_BASIC_STATS. Also move the setting of
STATX_CHANGE_COOKIE into generic_fillattr.

Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: "Paulo Alcantara (SUSE)" <pc@manguebit.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Message-Id: <20230807-mgctime-v7-2-d1dec143a704@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2023-08-09 08:56:36 +02:00
..
dir.c fs: port ->rename() to pass mnt_idmap 2023-01-19 09:24:26 +01:00
file.c splice: Use filemap_splice_read() instead of generic_file_splice_read() 2023-05-24 08:42:17 -06:00
Kconfig fs: Add VirtualBox guest shared folder (vboxsf) support 2020-02-08 17:34:58 -05:00
Makefile fs: Add VirtualBox guest shared folder (vboxsf) support 2020-02-08 17:34:58 -05:00
shfl_hostintf.h fs: Add VirtualBox guest shared folder (vboxsf) support 2020-02-08 17:34:58 -05:00
super.c vboxsf: Replace all non-returning strlcpy with strscpy 2023-05-22 12:35:14 -07:00
utils.c fs: pass the request_mask to generic_fillattr 2023-08-09 08:56:36 +02:00
vboxsf_wrappers.c fs: Add VirtualBox guest shared folder (vboxsf) support 2020-02-08 17:34:58 -05:00
vfsmod.h fs: port ->getattr() to pass mnt_idmap 2023-01-19 09:24:25 +01:00