diff mbox series

[1/2] vfs: add CLASS fd_raw

Message ID 20240625110029.606032-2-mjguzik@gmail.com (mailing list archive)
State New
Headers show
Series statx NULL path support | expand

Commit Message

Mateusz Guzik June 25, 2024, 11 a.m. UTC
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
---
 include/linux/file.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Xi Ruoyao June 25, 2024, 12:22 p.m. UTC | #1
On Tue, 2024-06-25 at 13:00 +0200, Mateusz Guzik wrote:
> Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
> ---
>  include/linux/file.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> 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);

FWIW this change is already in the mainline kernel as
a0fde7ed05ff020c3e7f410d73ce4f3a72b262d6.
Mateusz Guzik June 25, 2024, 1:13 p.m. UTC | #2
On Tue, Jun 25, 2024 at 2:23 PM Xi Ruoyao <xry111@xry111.site> wrote:
>
> On Tue, 2024-06-25 at 13:00 +0200, Mateusz Guzik wrote:
> > Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
> > ---
> >  include/linux/file.h | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > 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);
>
> FWIW this change is already in the mainline kernel as
> a0fde7ed05ff020c3e7f410d73ce4f3a72b262d6.
>

Thanks.

I guess I should have rebased that branch before adding stuff on top
of it, no damage done though. :)
diff mbox series

Patch

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);