[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <37DB544F-6224-4513-AF46-E1DFF06E5E01@dilger.ca>
Date: Wed, 14 Dec 2022 14:22:45 -0700
From: Andreas Dilger <adilger@...ger.ca>
To: "Ritesh Harjani (IBM)" <ritesh.list@...il.com>
Cc: Theodore Ts'o <tytso@....edu>, linux-ext4@...r.kernel.org,
Harshad Shirwadkar <harshadshirwadkar@...il.com>,
Li Xi <lixi@....com>
Subject: Re: [RFCv1 19/72] libext2fs: Misc fixes for struct_ext2_filsys
On Nov 7, 2022, at 5:21 AM, Ritesh Harjani (IBM) <ritesh.list@...il.com> wrote:
>
> From: Andreas Dilger <adilger@...mcloud.com>
>
> Move ext2_filsys fs_num_threads to fit into the __u16 "pad" field
> to avoid consuming one of the few remaining __u32 reserved fields.
This should be merged into the previous patch.
> Signed-off-by: Andreas Dilger <adilger@...mcloud.com>
> Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@...il.com>
> ---
> lib/ext2fs/ext2fs.h | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h
> index 6b4926ce..950ab042 100644
> --- a/lib/ext2fs/ext2fs.h
> +++ b/lib/ext2fs/ext2fs.h
> @@ -278,12 +278,11 @@ struct struct_ext2_filsys {
> time_t now;
> int cluster_ratio_bits;
> __u16 default_bitmap_type;
> - __u16 pad;
> - __u32 fs_num_threads;
> + __u16 fs_num_threads;
> /*
> * Reserved for future expansion
> */
> - __u32 reserved[4];
> + __u32 reserved[5];
>
> /*
> * Reserved for the use of the calling application.
> --
> 2.37.3
>
Cheers, Andreas
Download attachment "signature.asc" of type "application/pgp-signature" (874 bytes)
Powered by blists - more mailing lists