linux/arch
Al Viro 1da91ea87a introduce fd_file(), convert all accessors to it.
For any changes of struct fd representation we need to
turn existing accesses to fields into calls of wrappers.
Accesses to struct fd::flags are very few (3 in linux/file.h,
1 in net/socket.c, 3 in fs/overlayfs/file.c and 3 more in
explicit initializers).
	Those can be dealt with in the commit converting to
new layout; accesses to struct fd::file are too many for that.
	This commit converts (almost) all of f.file to
fd_file(f).  It's not entirely mechanical ('file' is used as
a member name more than just in struct fd) and it does not
even attempt to distinguish the uses in pointer context from
those in boolean context; the latter will be eventually turned
into a separate helper (fd_empty()).

	NOTE: mass conversion to fd_empty(), tempting as it
might be, is a bad idea; better do that piecewise in commit
that convert from fdget...() to CLASS(...).

[conflicts in fs/fhandle.c, kernel/bpf/syscall.c, mm/memcontrol.c
caught by git; fs/stat.c one got caught by git grep]
[fs/xattr.c conflict]

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2024-08-12 22:00:43 -04:00
..
alpha introduce fd_file(), convert all accessors to it. 2024-08-12 22:00:43 -04:00
arc arc: convert to generic syscall table 2024-07-10 14:23:38 +02:00
arm introduce fd_file(), convert all accessors to it. 2024-08-12 22:00:43 -04:00
arm64 RISC-V Patches for the 6.11 Merge Window, Part 2 2024-07-27 10:14:34 -07:00
csky ftrace: Rewrite of function graph tracer 2024-07-18 13:36:33 -07:00
hexagon hexagon: use new system call table 2024-07-10 14:23:38 +02:00
loongarch RISC-V Patches for the 6.11 Merge Window, Part 2 2024-07-27 10:14:34 -07:00
m68k Kbuild updates for v6.11 2024-07-23 14:32:21 -07:00
microblaze syscalls: mmap(): use unsigned offset type consistently 2024-06-25 15:57:38 +02:00
mips - Use improved timer sync for Loongson64 2024-07-25 12:41:53 -07:00
nios2 Kbuild updates for v6.11 2024-07-23 14:32:21 -07:00
openrisc openrisc: convert to generic syscall table 2024-07-10 14:23:38 +02:00
parisc parisc architecture fixes and updates for kernel v6.11-rc1: 2024-07-25 12:37:42 -07:00
powerpc introduce fd_file(), convert all accessors to it. 2024-08-12 22:00:43 -04:00
riscv RISC-V Patches for the 6.11 Merge Window, Part 2 2024-07-27 10:14:34 -07:00
s390 more s390 updates for 6.11 merge window 2024-07-26 10:47:53 -07:00
sh sh updates for v6.11 2024-07-23 11:57:52 -07:00
sparc Driver core changes for 6.11-rc1 2024-07-25 10:42:22 -07:00
um This pull request contains the following changes for UML: 2024-07-25 12:33:08 -07:00
x86 introduce fd_file(), convert all accessors to it. 2024-08-12 22:00:43 -04:00
xtensa - 875fa64577da ("mm/hugetlb_vmemmap: fix race with speculative PFN 2024-07-21 17:15:46 -07:00
.gitignore
Kconfig Revert "mm: mmap: allow for the maximum number of bits for randomizing mmap_base by default" 2024-06-17 12:57:03 -07:00