Skip to content

Commit a0fde7e

Browse files
committed
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>
1 parent f6bdc78 commit a0fde7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/file.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ static inline void fdput_pos(struct fd f)
8484
}
8585

8686
DEFINE_CLASS(fd, struct fd, fdput(_T), fdget(fd), int fd)
87+
DEFINE_CLASS(fd_raw, struct fd, fdput(_T), fdget_raw(fd), int fd)
8788

8889
extern int f_dupfd(unsigned int from, struct file *file, unsigned flags);
8990
extern int replace_fd(unsigned fd, struct file *file, unsigned flags);

0 commit comments

Comments
 (0)