diff options
Diffstat (limited to 'include/linux/writeback.h')
| -rw-r--r-- | include/linux/writeback.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index b625073b80c8..f1bfa12ea246 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h | |||
| @@ -8,6 +8,10 @@ | |||
| 8 | #include <linux/fs.h> | 8 | #include <linux/fs.h> |
| 9 | 9 | ||
| 10 | /* | 10 | /* |
| 11 | * The 1/4 region under the global dirty thresh is for smooth dirty throttling: | ||
| 12 | * | ||
| 13 | * (thresh - thresh/DIRTY_FULL_SCOPE, thresh) | ||
| 14 | * | ||
| 11 | * The 1/16 region above the global dirty limit will be put to maximum pauses: | 15 | * The 1/16 region above the global dirty limit will be put to maximum pauses: |
| 12 | * | 16 | * |
| 13 | * (limit, limit + limit/DIRTY_MAXPAUSE_AREA) | 17 | * (limit, limit + limit/DIRTY_MAXPAUSE_AREA) |
| @@ -25,9 +29,16 @@ | |||
| 25 | * knocks down the global dirty threshold quickly, in which case the global | 29 | * knocks down the global dirty threshold quickly, in which case the global |
| 26 | * dirty limit will follow down slowly to prevent livelocking all dirtier tasks. | 30 | * dirty limit will follow down slowly to prevent livelocking all dirtier tasks. |
| 27 | */ | 31 | */ |
| 32 | #define DIRTY_SCOPE 8 | ||
| 33 | #define DIRTY_FULL_SCOPE (DIRTY_SCOPE / 2) | ||
| 28 | #define DIRTY_MAXPAUSE_AREA 16 | 34 | #define DIRTY_MAXPAUSE_AREA 16 |
| 29 | #define DIRTY_PASSGOOD_AREA 8 | 35 | #define DIRTY_PASSGOOD_AREA 8 |
| 30 | 36 | ||
| 37 | /* | ||
| 38 | * 4MB minimal write chunk size | ||
| 39 | */ | ||
| 40 | #define MIN_WRITEBACK_PAGES (4096UL >> (PAGE_CACHE_SHIFT - 10)) | ||
| 41 | |||
| 31 | struct backing_dev_info; | 42 | struct backing_dev_info; |
| 32 | 43 | ||
| 33 | /* | 44 | /* |
