On Wed, Jan 20, 2021 at 01:26:30PM -0800, Harshad Shirwadkar wrote: > From: Harshad Shirwadkar <harshadshirwadkar@xxxxxxxxx> > > 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@xxxxxxxxx> 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