linux-stable/fs/ntfs3
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
..
lib fs/ntfs3: Add missing header and guards to lib/ headers 2021-09-13 19:41:44 +03:00
attrib.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
attrlist.c fs/ntfs3: Code refactoring 2023-07-03 00:21:27 +04:00
bitfunc.c fs/ntfs3: Add ntfs_bitmap_weight_le function and refactoring 2022-11-14 19:50:42 +03:00
bitmap.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
debug.h fs/ntfs3. Add forward declarations for structs to debug.h 2021-09-13 19:41:43 +03:00
dir.c fs/ntfs3: Fix sparse problems 2022-11-14 19:50:42 +03:00
file.c fs: pass the request_mask to generic_fillattr 2023-08-09 08:56:36 +02:00
frecord.c ntfs3: convert to ctime accessor functions 2023-07-24 10:30:02 +02:00
fslog.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
fsntfs.c fs/ntfs3: Add support /proc/fs/ntfs3/<dev>/volinfo and /proc/fs/ntfs3/<dev>/label 2023-07-03 00:21:29 +04:00
index.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
inode.c ntfs3: convert to ctime accessor functions 2023-07-24 10:30:02 +02:00
Kconfig fs: build the legacy direct I/O code conditionally 2023-01-26 10:30:56 -07:00
lznt.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
Makefile
namei.c ntfs3: convert to ctime accessor functions 2023-07-24 10:30:02 +02:00
ntfs.h fs/ntfs3: Add ability to format new mft records with bigger/smaller header 2023-07-03 00:21:28 +04:00
ntfs_fs.h fs/ntfs3: Add support /proc/fs/ntfs3/<dev>/volinfo and /proc/fs/ntfs3/<dev>/label 2023-07-03 00:21:29 +04:00
record.c fs/ntfs3: Add ability to format new mft records with bigger/smaller header 2023-07-03 00:21:28 +04:00
run.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
super.c fs/ntfs3: Correct mode for label entry inside /proc/fs/ntfs3/ 2023-07-03 00:21:30 +04:00
upcase.c fs/ntfs3: Add option "nocase" 2022-09-30 17:39:47 +03:00
xattr.c ntfs3: convert to ctime accessor functions 2023-07-24 10:30:02 +02:00