[PATCH] fs: delete unused members in <linux/stat.h>

Sascha Hauer sha at pengutronix.de
Mon Mar 15 08:06:44 GMT 2021


On Fri, Mar 12, 2021 at 12:40:27PM +0100, Ahmad Fatoum wrote:
> Most of the struct is stuff we don't use and likely won't any
> time soon. Drop them.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
>  fs/fs.c              |  1 -
>  include/linux/stat.h | 12 ------------
>  2 files changed, 13 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/fs/fs.c b/fs/fs.c
> index 3db24b7b6822..a5dbc3aac478 100644
> --- a/fs/fs.c
> +++ b/fs/fs.c
> @@ -909,7 +909,6 @@ EXPORT_SYMBOL(readdir);
>  
>  static void stat_inode(struct inode *inode, struct stat *s)
>  {
> -	s->st_dev = 0;
>  	s->st_ino = inode->i_ino;
>  	s->st_mode = inode->i_mode;
>  	s->st_uid = inode->i_uid;
> diff --git a/include/linux/stat.h b/include/linux/stat.h
> index 87fe06839671..f5043d8bcea7 100644
> --- a/include/linux/stat.h
> +++ b/include/linux/stat.h
> @@ -45,8 +45,6 @@ extern "C" {
>  #define S_IRWXUGO	(S_IRWXU|S_IRWXG|S_IRWXO)
>  
>  struct stat {
> -	unsigned short st_dev;
> -	unsigned short __pad1;
>  	unsigned long st_ino;
>  	unsigned short st_mode;
>  	unsigned short st_nlink;
> @@ -55,16 +53,6 @@ struct stat {
>  	unsigned short st_rdev;
>  	unsigned short __pad2;
>  	loff_t  st_size;
> -	unsigned long  st_blksize;
> -	unsigned long  st_blocks;
> -	unsigned long  st_atime;
> -	unsigned long  __unused1;
> -	unsigned long  st_mtime;
> -	unsigned long  __unused2;
> -	unsigned long  st_ctime;
> -	unsigned long  __unused3;
> -	unsigned long  __unused4;
> -	unsigned long  __unused5;
>  };
>  
>  #ifdef __cplusplus
> -- 
> 2.29.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list