OSDN Git Service

ext4: simplify updating of fast commit stats
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Thu, 23 Dec 2021 20:21:39 +0000 (12:21 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 23 Dec 2021 23:13:25 +0000 (18:13 -0500)
commit0915e464cb274648e1ef1663e1356e53ff400983
tree00d4f5dd0e1f0a2547fc840bb46398da2c6b8a93
parent7bbbe241ec7ce0def9f71464c878fdbd2b0dcf37
ext4: simplify updating of fast commit stats

Move fast commit stats updating logic to a separate function from
ext4_fc_commit(). This significantly improves readability of
ext4_fc_commit().

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20211223202140.2061101-4-harshads@google.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/fast_commit.c
fs/ext4/fast_commit.h