Re: [PATCH] [DRAFT RFC]: file: reclaim 24 bytes from f_owner

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 09, 2024 at 10:10:40PM +0200, Christian Brauner wrote:
> +++ b/drivers/net/tun.c
> @@ -3467,8 +3467,13 @@ static int tun_chr_fasync(int fd, struct file *file, int on)
>  static int tun_chr_open(struct inode *inode, struct file * file)
>  {
>  	struct net *net = current->nsproxy->net_ns;
> +	struct fown_struct *f_owner = __free(kfree) = NULL;

What does this syntax mean?

> +++ b/drivers/tty/tty_io.c
> @@ -2119,12 +2119,17 @@ static struct tty_struct *tty_open_by_driver(dev_t device,
>  static int tty_open(struct inode *inode, struct file *filp)
>  {
>  	struct tty_struct *tty;
> +	struct fown_struct *f_owner __free(kfree) = NULL;

This makes more sense.  Was the tun one just a typo?





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux