Skip to contentSkip to conversation

writeback: remove unused macro DIRTY_FULL_SCOPE

PATCH Applied Miaohe Lin 3 participants 3 messages Sep 9, 2022 – Sep 10, 2022 Page cache

lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 writeback: remove unused macro DIRTY_FULL_SCOPE

It's introduced but never used. Remove it.

---
 include/linux/writeback.h | 8 --------
 1 file changed, 8 deletions(-)
include/linux/writeback.h +0 -8
index 3f045f6d6c4f..06f9291b6fd5 100644
@@ -17,20 +17,12 @@ struct bio;
 DECLARE_PER_CPU(int, dirty_throttle_leaks);
 
 /*
- * The 1/4 region under the global dirty thresh is for smooth dirty throttling:
- *
- *	(thresh - thresh/DIRTY_FULL_SCOPE, thresh)
- *
- * Further beyond, all dirtier tasks will enter a loop waiting (possibly long
- * time) for the dirty pages to drop, unless written enough pages.
- *
  * The global dirty threshold is normally equal to the global dirty limit,
  * except when the system suddenly allocates a lot of anonymous memory and
  * knocks down the global dirty threshold quickly, in which case the global
  * dirty limit will follow down slowly to prevent livelocking all dirtier tasks.
  */
 #define DIRTY_SCOPE		8
-#define DIRTY_FULL_SCOPE	(DIRTY_SCOPE / 2)
 
 struct backing_dev_info;
 
Signature · 1 line
2.23.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Miaohe Lin

It's introduced but never used. Remove it.

Looks good. Feel free to add:

Honza

Quoted 32 lines
---
 include/linux/writeback.h | 8 --------
 1 file changed, 8 deletions(-)
include/linux/writeback.h +0 -8
index 3f045f6d6c4f..06f9291b6fd5 100644
@@ -17,20 +17,12 @@ struct bio;
 DECLARE_PER_CPU(int, dirty_throttle_leaks);
 
 /*
- * The 1/4 region under the global dirty thresh is for smooth dirty throttling:
- *
- *	(thresh - thresh/DIRTY_FULL_SCOPE, thresh)
- *
- * Further beyond, all dirtier tasks will enter a loop waiting (possibly long
- * time) for the dirty pages to drop, unless written enough pages.
- *
  * The global dirty threshold is normally equal to the global dirty limit,
  * except when the system suddenly allocates a lot of anonymous memory and
  * knocks down the global dirty threshold quickly, in which case the global
  * dirty limit will follow down slowly to prevent livelocking all dirtier tasks.
  */
 #define DIRTY_SCOPE		8
-#define DIRTY_FULL_SCOPE	(DIRTY_SCOPE / 2)
 
 struct backing_dev_info;
 
Signature · 1 line
2.23.0
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR