mm: bdi: allow setting a minimum for the bdi dirty limit
[safe/jmp/linux-2.6] / include / linux / backing-dev.h
index 6d51366..9a89655 100644 (file)
@@ -51,6 +51,8 @@ struct backing_dev_info {
        struct prop_local_percpu completions;
        int dirty_exceeded;
 
+       unsigned int min_ratio;
+
        struct device *dev;
 };
 
@@ -137,6 +139,8 @@ static inline unsigned long bdi_stat_error(struct backing_dev_info *bdi)
 #endif
 }
 
+int bdi_set_min_ratio(struct backing_dev_info *bdi, unsigned int min_ratio);
+
 /*
  * Flags in backing_dev_info::capability
  * - The first two flags control whether dirty pages will contribute to the