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
..
2024-05-29 09:25:15 -07:00
2024-07-18 09:50:08 +02:00
2024-07-11 16:14:26 +02:00
2024-07-21 17:15:46 -07:00
2024-07-15 11:31:32 -07:00
2024-07-22 10:59:08 -07:00
2024-05-31 12:31:39 +02:00
2024-08-12 22:00:43 -04:00
2024-07-24 10:53:13 +02:00
2024-07-26 10:34:42 -07:00
2024-08-12 22:00:43 -04:00
2024-06-17 20:42:57 +02:00
2024-07-15 11:14:59 -07:00
2024-07-15 11:31:32 -07:00
2024-06-13 12:48:46 -05:00
2024-07-02 06:21:18 +02:00
2024-07-15 11:14:59 -07:00
2024-07-26 18:48:12 +08:00
2024-07-17 12:53:47 -07:00
2024-05-28 15:57:23 +02:00
2024-06-26 12:54:11 +02:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-07-15 11:31:32 -07:00
2024-08-12 22:00:43 -04:00
2024-07-09 10:40:03 +02:00
2024-07-15 11:14:59 -07:00
2024-07-15 10:52:51 -07:00
2024-07-27 15:11:59 -07:00
2024-07-15 11:14:59 -07:00
2024-07-21 17:15:46 -07:00
2024-07-15 13:28:14 -07:00
2024-07-17 13:11:42 -07:00
2024-07-08 23:59:37 -04:00
2024-07-23 14:32:21 -07:00
2024-07-23 15:15:16 -07:00
2024-07-08 14:10:03 -04:00
2024-07-15 11:14:59 -07:00
2024-07-24 10:53:13 +02:00
2024-07-21 17:15:46 -07:00
2024-07-08 13:47:24 -04:00
2024-07-17 12:00:49 -07:00
2024-07-26 14:33:10 -07:00
2024-06-03 16:37:07 +02:00
2024-08-12 22:00:43 -04:00
2024-07-22 10:50:18 -07:00
2024-08-12 22:00:43 -04:00
2024-06-20 09:46:01 +02:00
2024-05-31 12:31:41 +02:00
2024-08-12 22:00:43 -04:00
2024-07-24 10:29:50 -07:00
2024-07-18 14:48:11 -07:00
2024-05-28 11:52:53 +02:00
2024-05-28 11:52:49 +02:00
2024-08-12 22:00:43 -04:00
2024-05-31 12:31:41 +02:00
2024-05-31 12:31:42 +02:00
2024-08-12 22:00:43 -04:00
2024-05-28 11:52:45 +02:00
2024-07-22 18:25:47 -07:00
2024-07-02 06:21:20 +02:00
2024-07-12 22:01:09 +02:00
2024-06-26 12:54:11 +02:00
2024-07-21 17:56:22 -07:00
2024-06-20 19:30:02 -04:00
2024-07-15 11:31:32 -07:00
2024-06-12 11:01:31 -07:00
2024-08-12 22:00:43 -04:00
2024-06-11 11:22:57 +09:00
2024-07-21 17:15:46 -07:00
2024-06-25 11:15:48 +02:00
2024-06-03 15:52:10 +02:00
2024-07-23 17:30:42 -07:00
2024-07-15 11:14:59 -07:00
2024-05-28 12:06:51 +02:00
2024-07-18 17:03:42 -07:00
2024-07-24 20:59:29 +02:00
2024-07-24 20:59:29 +02:00
2024-07-24 20:59:29 +02:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-07-24 20:59:29 +02:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-07-24 20:59:29 +02:00
2024-05-30 09:11:47 +02:00
2024-07-02 06:20:49 +02:00
2024-07-24 20:59:29 +02:00
2024-08-12 22:00:43 -04:00
2024-07-24 20:59:29 +02:00
2024-07-15 12:34:01 -07:00
2024-08-12 22:00:43 -04:00
2024-06-19 13:13:55 -07:00
2024-08-12 22:00:43 -04:00
2024-06-07 17:00:44 +02:00
2024-08-12 22:00:43 -04:00
2024-07-15 11:54:04 -07:00
2024-05-31 12:31:43 +02:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-07-18 09:50:08 +02:00
2024-08-12 22:00:43 -04:00
2024-07-24 10:53:13 +02:00
2024-07-24 20:59:29 +02:00
2024-06-28 14:36:43 +02:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-07-27 09:56:33 +02:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-07-12 15:52:15 -07:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00