OSDN Git Service

jbd2: add a helper to find out number of fast commit blocks
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Fri, 20 Nov 2020 20:22:32 +0000 (12:22 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 17 Dec 2020 18:30:45 +0000 (13:30 -0500)
commit9bd23c31f392bda88618008f27fd52ee9e0fac38
treef49df76debd74e9dac011a19cc59e0668b5247c5
parent941ba122ca56756aad82db21d28f283ad33b8dee
jbd2: add a helper to find out number of fast commit blocks

Add a helper to read number of fast commit blocks from jbd2 superblock
and also rename the JBD2_MIN_FC_BLKS to
JBD2_DEFAULT_FAST_COMMIT_BLOCKS since this constant is just the
default number of fast commit blocks to use in case number of fast
commit blocks isn't set in jbd2 superblock.

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20201120202232.2240293-2-harshadshirwadkar@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c
include/linux/jbd2.h