[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YAmkMqfOerY/GPSY@mit.edu>
Date: Thu, 21 Jan 2021 10:56:34 -0500
From: "Theodore Ts'o" <tytso@....edu>
To: Harshad Shirwadkar <harshadshirwadkar@...il.com>
Cc: linux-ext4@...r.kernel.org
Subject: Re: [PATCH v3 04/15] libext2fs: provide APIs to configure fast
commit blocks
On Wed, Jan 20, 2021 at 01:26:30PM -0800, Harshad Shirwadkar wrote:
> From: Harshad Shirwadkar <harshadshirwadkar@...il.com>
>
> This patch adds new libext2fs that allow configuring number of fast
> commit blocks in journal superblock. We also add a struct
> ext2fs_journal_params which contains number of fast commit blocks and
> number of normal journal blocks. With this patch, the preferred way
> for configuring number of blocks with and without fast commits is:
>
> struct ext2fs_journal_params params;
>
> ext2fs_get_journal_params(¶ms, ...);
> params.num_journal_blocks = ...;
> params.num_fc_blocks = ...;
> ext2fs_create_journal_superblock2(..., ¶ms, ...);
> OR
> ext2fs_add_journal_inode3(..., ¶ms, ...);
>
> Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@...il.com>
I've applied to the next branch a modified version of this which is
based on the Dec. 20th version of this change, with a local static
inline copy of jbd2_journal_get_num_fc_blks() in ljs.c, as I had
mentioned earlier.
- Ted
Powered by blists - more mailing lists