fuse: remove reliance on bdi congestion
[sfrench/cifs-2.6.git] / fs / fuse / control.c
index 000d2e5627e99c677951b42593bd5c055b37a006..7cede9a3bc9623d75641f168c6b3d4eef80a6c66 100644 (file)
@@ -164,7 +164,6 @@ static ssize_t fuse_conn_congestion_threshold_write(struct file *file,
 {
        unsigned val;
        struct fuse_conn *fc;
-       struct fuse_mount *fm;
        ssize_t ret;
 
        ret = fuse_conn_limit_write(file, buf, count, ppos, &val,
@@ -178,22 +177,6 @@ static ssize_t fuse_conn_congestion_threshold_write(struct file *file,
        down_read(&fc->killsb);
        spin_lock(&fc->bg_lock);
        fc->congestion_threshold = val;
-
-       /*
-        * Get any fuse_mount belonging to this fuse_conn; s_bdi is
-        * shared between all of them
-        */
-
-       if (!list_empty(&fc->mounts)) {
-               fm = list_first_entry(&fc->mounts, struct fuse_mount, fc_entry);
-               if (fc->num_background < fc->congestion_threshold) {
-                       clear_bdi_congested(fm->sb->s_bdi, BLK_RW_SYNC);
-                       clear_bdi_congested(fm->sb->s_bdi, BLK_RW_ASYNC);
-               } else {
-                       set_bdi_congested(fm->sb->s_bdi, BLK_RW_SYNC);
-                       set_bdi_congested(fm->sb->s_bdi, BLK_RW_ASYNC);
-               }
-       }
        spin_unlock(&fc->bg_lock);
        up_read(&fc->killsb);
        fuse_conn_put(fc);