Whamcloud - gitweb
libext2fs: provide APIs to configure fast commit blocks
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Wed, 20 Jan 2021 21:26:30 +0000 (13:26 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 21 Jan 2021 15:55:24 +0000 (10:55 -0500)
commit3cc4f867441b5e7172826876a39d3957c8da745d
treeb448706d3efd1a65eac91eb7c1c5d2185969aab1
parent7ed2b5d0f5a3a650ddf4c0e335ef9881ff782da8
libext2fs: provide APIs to configure fast commit blocks

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(&params, ...);
params.num_journal_blocks = ...;
params.num_fc_blocks = ...;
ext2fs_create_journal_superblock2(..., &params, ...);
         OR
ext2fs_add_journal_inode3(..., &params, ...);

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/journal.c
lib/e2p/e2p.h
lib/e2p/ljs.c
lib/ext2fs/ext2fs.h
lib/ext2fs/kernel-jbd.h
lib/ext2fs/mkjournal.c