#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/spinlock.h>
#include <linux/pagemap.h>
#include <linux/writeback.h>
#include <linux/backing-dev.h>
#include <linux/task_io_accounting_ops.h>
#include <linux/blkdev.h>
#include <linux/percpu.h>
#include <linux/sysctl.h>
#include <linux/syscalls.h>
#include <linux/buffer_head.h>
#include <linux/pagevec.h>
#include <linux/sched/rt.h>
#include <linux/sched/signal.h>
#include <linux/mm_inline.h>
#include <trace/events/writeback.h>
#define MAX_PAUSE max(HZ/5, 1)
#define DIRTY_POLL_THRESH (128 >> (PAGE_SHIFT - 10))
#define BANDWIDTH_INTERVAL max(HZ/5, 1)
#define RATELIMIT_CALC_SHIFT 10