diff options
author | Harshad Shirwadkar <harshadshirwadkar@gmail.com> | 2021-12-23 12:21:38 -0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-12-23 18:13:25 -0500 |
commit | 7bbbe241ec7ce0def9f71464c878fdbd2b0dcf37 (patch) | |
tree | c5ae1a29d39903622fb1f2066a87f96b47329b1a /fs/ext4/ext4.h | |
parent | 2729cfdcfa1cc49bef5a90d046fa4a187fdfcc69 (diff) | |
download | lwn-7bbbe241ec7ce0def9f71464c878fdbd2b0dcf37.tar.gz lwn-7bbbe241ec7ce0def9f71464c878fdbd2b0dcf37.zip |
ext4: drop ineligible txn start stop APIs
This patch drops ext4_fc_start_ineligible() and
ext4_fc_stop_ineligible() APIs. Fast commit ineligible transactions
should simply call ext4_fc_mark_ineligible() after starting the
trasaction.
Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20211223202140.2061101-3-harshads@google.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 404dd50856e5..d71485d53050 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -1725,9 +1725,9 @@ struct ext4_sb_info { */ struct work_struct s_error_work; - /* Ext4 fast commit stuff */ + /* Ext4 fast commit sub transaction ID */ atomic_t s_fc_subtid; - atomic_t s_fc_ineligible_updates; + /* * After commit starts, the main queue gets locked, and the further * updates get added in the staging queue. @@ -2926,8 +2926,6 @@ void __ext4_fc_track_create(handle_t *handle, struct inode *inode, void ext4_fc_track_create(handle_t *handle, struct dentry *dentry); void ext4_fc_track_inode(handle_t *handle, struct inode *inode); void ext4_fc_mark_ineligible(struct super_block *sb, int reason); -void ext4_fc_start_ineligible(struct super_block *sb, int reason); -void ext4_fc_stop_ineligible(struct super_block *sb); void ext4_fc_start_update(struct inode *inode); void ext4_fc_stop_update(struct inode *inode); void ext4_fc_del(struct inode *inode); |