Re: [PATCH] PROC: Make proc_dir_entry::name a terminal array rather than a pointer

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

 



On Mon, Jun 06, 2011 at 04:41:39PM +0100, David Howells wrote:

Acked-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>

Might as well move "namelen" next to the end.

>  struct proc_dir_entry {
>  	unsigned int low_ino;
>  	unsigned int namelen;
> -	const char *name;
>  	mode_t mode;
>  	nlink_t nlink;
>  	uid_t uid;
> @@ -76,6 +75,7 @@ struct proc_dir_entry {
>  	spinlock_t pde_unload_lock; /* proc_fops checks and pde_users bumps */
>  	struct completion *pde_unload_completion;
>  	struct list_head pde_openers;	/* who did ->open, but not ->release */
> +	char name[];
>  };
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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