diff options
author | Christian Brauner <brauner@kernel.org> | 2024-05-09 13:02:39 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-05-09 13:02:39 +0200 |
commit | a0fde7ed05ff020c3e7f410d73ce4f3a72b262d6 (patch) | |
tree | fcfb08ff61863047c2c7f82e8dce7aa7910ce538 /include/linux/file.h | |
parent | f6bdc7865ef4a7a4393c90a550c728231ebc853e (diff) |
file: add fd_raw cleanup class
So we can also use CLASS(fd_raw, f)(fd) for codepaths where we allow
FMODE_PATH aka O_PATH file descriptors to be used.
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/file.h')
-rw-r--r-- | include/linux/file.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/file.h b/include/linux/file.h index 169692cb1906..45d0f4800abd 100644 --- a/include/linux/file.h +++ b/include/linux/file.h @@ -84,6 +84,7 @@ static inline void fdput_pos(struct fd f) } DEFINE_CLASS(fd, struct fd, fdput(_T), fdget(fd), int fd) +DEFINE_CLASS(fd_raw, struct fd, fdput(_T), fdget_raw(fd), int fd) extern int f_dupfd(unsigned int from, struct file *file, unsigned flags); extern int replace_fd(unsigned fd, struct file *file, unsigned flags); |