]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: use ext4_journal_start/stop for fast commit transactions
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Thu, 23 Dec 2021 20:21:37 +0000 (12:21 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 23 Dec 2021 23:13:25 +0000 (18:13 -0500)
commit7a742c300d67c0c44e3d00a279c13abbcd7d7d8b
treefa4588c2654d7f04e5b0bcf33aa46e5c6b92c64a
parentb6046c18e9bb7b5e7db4e3cea2707ab31b8b66c1
ext4: use ext4_journal_start/stop for fast commit transactions

This patch drops all calls to ext4_fc_start_update() and
ext4_fc_stop_update(). To ensure that there are no ongoing journal
updates during fast commit, we also make jbd2_fc_begin_commit() lock
journal for updates. This way we don't have to maintain two different
transaction start stop APIs for fast commit and full commit. This
patch doesn't remove the functions altogether since in future we want
to have inode level locking for fast commits.

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20211223202140.2061101-2-harshads@google.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/acl.c
fs/ext4/extents.c
fs/ext4/file.c
fs/ext4/inode.c
fs/ext4/ioctl.c
fs/jbd2/journal.c