linux-stable/fs/9p
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
..
acl.c fs: port inode_owner_or_capable() to mnt_idmap 2023-01-19 09:24:29 +01:00
acl.h fs: port ->set_acl() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
cache.c netfs: Fix gcc-12 warning by embedding vfs inode in netfs_i_context 2022-06-09 13:55:00 -07:00
cache.h fs/9p: Rework cache modes and add new options to Documentation 2023-04-09 21:41:21 +00:00
fid.c fs/9p: remove writeback fid and fix per-file modes 2023-03-27 02:33:48 +00:00
fid.h fs/9p: Rework cache modes and add new options to Documentation 2023-04-09 21:41:21 +00:00
Kconfig 9p: Remove INET dependency 2023-05-04 21:46:57 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
v9fs.c fs/9p: Rework cache modes and add new options to Documentation 2023-04-09 21:41:21 +00:00
v9fs.h fs/9p: Rework cache modes and add new options to Documentation 2023-04-09 21:41:21 +00:00
v9fs_vfs.h fs/9p: Consolidate file operations and add readahead and writeback 2023-03-27 02:33:39 +00:00
vfs_addr.c Including fixes from netfilter. 2023-05-05 19:12:01 -07:00
vfs_dentry.c 9p: Remove INET dependency 2023-05-04 21:46:57 +01:00
vfs_dir.c Including fixes from netfilter. 2023-05-05 19:12:01 -07:00
vfs_file.c 9p: Add splice_read wrapper 2023-05-24 08:42:16 -06:00
vfs_inode.c fs: pass the request_mask to generic_fillattr 2023-08-09 08:56:36 +02:00
vfs_inode_dotl.c fs: pass the request_mask to generic_fillattr 2023-08-09 08:56:36 +02:00
vfs_super.c Including fixes from netfilter. 2023-05-05 19:12:01 -07:00
xattr.c v6.4/vfs.acl 2023-04-24 13:35:23 -07:00
xattr.h 9p: use stub posix acl handlers 2022-10-20 10:13:32 +02:00