scoutfs: remove scoutfs_trans_wake_holders()

This was used by compaction to wake local holders who were waiting for
compaction to free up level 0 segments for them to enter the
transaction.  Throttling level 0 segment writes works differently now
and doesn't involve blocking trans holders.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2017-09-11 14:09:16 -07:00
committed by Mark Fasheh
parent 5fa97018e5
commit ba40899e84
2 changed files with 0 additions and 13 deletions

View File

@@ -451,18 +451,6 @@ void scoutfs_release_trans(struct super_block *sb)
wake_up(&sbi->trans_hold_wq);
}
/*
* This is called to wake people waiting on holders when the conditions
* that they're waiting on change: levels being full, dirty count falling
* under a segment, or holders falling to 0.
*/
void scoutfs_trans_wake_holders(struct super_block *sb)
{
struct scoutfs_sb_info *sbi = SCOUTFS_SB(sb);
wake_up(&sbi->trans_hold_wq);
}
int scoutfs_setup_trans(struct super_block *sb)
{
struct scoutfs_sb_info *sbi = SCOUTFS_SB(sb);

View File

@@ -12,7 +12,6 @@ void scoutfs_trans_restart_sync_deadline(struct super_block *sb);
int scoutfs_hold_trans(struct super_block *sb, struct scoutfs_item_count *cnt);
bool scoutfs_trans_held(void);
void scoutfs_release_trans(struct super_block *sb);
void scoutfs_trans_wake_holders(struct super_block *sb);
void scoutfs_trans_track_item(struct super_block *sb, signed items,
signed keys, signed vals);