diff options
author | Harshad Shirwadkar <harshadshirwadkar@gmail.com> | 2021-12-23 23:21:37 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-12-24 02:13:25 +0300 |
commit | 2729cfdcfa1cc49bef5a90d046fa4a187fdfcc69 (patch) | |
tree | fa4588c2654d7f04e5b0bcf33aa46e5c6b92c64a /fs/ext4/acl.c | |
parent | 960e0ab63b2e5d8476bc873743f812e9e90cd047 (diff) | |
download | linux-2729cfdcfa1cc49bef5a90d046fa4a187fdfcc69.tar.xz |
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>
Diffstat (limited to 'fs/ext4/acl.c')
-rw-r--r-- | fs/ext4/acl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/acl.c b/fs/ext4/acl.c index 0613dfcbfd4a..5a35768d6149 100644 --- a/fs/ext4/acl.c +++ b/fs/ext4/acl.c @@ -246,7 +246,6 @@ retry: handle = ext4_journal_start(inode, EXT4_HT_XATTR, credits); if (IS_ERR(handle)) return PTR_ERR(handle); - ext4_fc_start_update(inode); if ((type == ACL_TYPE_ACCESS) && acl) { error = posix_acl_update_mode(mnt_userns, inode, &mode, &acl); @@ -264,7 +263,6 @@ retry: } out_stop: ext4_journal_stop(handle); - ext4_fc_stop_update(inode); if (error == -ENOSPC && ext4_should_retry_alloc(inode->i_sb, &retries)) goto retry; return error; |