Do not disable interrupts when reading min_free_kbytes
[sfrench/cifs-2.6.git] / mm / page_alloc.c
index f564717d22f342de91e84ecd1e71e0314e0f33a7..542fc088ff508b15bf1416dcd68c80e8c3fb2fac 100644 (file)
@@ -3199,7 +3199,8 @@ int min_free_kbytes_sysctl_handler(ctl_table *table, int write,
        struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
 {
        proc_dointvec(table, write, file, buffer, length, ppos);
-       setup_per_zone_pages_min();
+       if (write)
+               setup_per_zone_pages_min();
        return 0;
 }