congestion_wait_interruptible() is no longer used.
Unified · Split
| @@ -93,7 +93,6 @@ static inline int bdi_rw_congested(struct backing_dev_info *bdi) · 92 unmodified lines | |||
| 93 | void clear_bdi_congested(struct backing_dev_info *bdi, int rw); | 93 | void clear_bdi_congested(struct backing_dev_info *bdi, int rw); |
| 94 | void set_bdi_congested(struct backing_dev_info *bdi, int rw); | 94 | void set_bdi_congested(struct backing_dev_info *bdi, int rw); |
| 95 | long congestion_wait(int rw, long timeout); | 95 | long congestion_wait(int rw, long timeout); |
| 96 | long congestion_wait_interruptible(int rw, long timeout); | ||
| 97 | void congestion_end(int rw); | 96 | void congestion_end(int rw); |
| 98 | 97 | ||
| 99 | #define bdi_cap_writeback_dirty(bdi) \ | 98 | #define bdi_cap_writeback_dirty(bdi) \ |
| @@ -55,22 +55,6 @@ long congestion_wait(int rw, long timeout) · 54 unmodified lines | |||
| 55 | } | 55 | } |
| 56 | EXPORT_SYMBOL(congestion_wait); | 56 | EXPORT_SYMBOL(congestion_wait); |
| 57 | 57 | ||
| 58 | long congestion_wait_interruptible(int rw, long timeout) | ||
| 59 | { | ||
| 60 | long ret; | ||
| 61 | DEFINE_WAIT(wait); | ||
| 62 | wait_queue_head_t *wqh = &congestion_wqh[rw]; | ||
| 63 | |||
| 64 | prepare_to_wait(wqh, &wait, TASK_INTERRUPTIBLE); | ||
| 65 | if (signal_pending(current)) | ||
| 66 | ret = -ERESTARTSYS; | ||
| 67 | else | ||
| 68 | ret = io_schedule_timeout(timeout); | ||
| 69 | finish_wait(wqh, &wait); | ||
| 70 | return ret; | ||
| 71 | } | ||
| 72 | EXPORT_SYMBOL(congestion_wait_interruptible); | ||
| 73 | |||
| 74 | /** | 58 | /** |
| 75 | * congestion_end - wake up sleepers on a congested backing_dev_info | 59 | * congestion_end - wake up sleepers on a congested backing_dev_info |
| 76 | * @rw: READ or WRITE | 60 | * @rw: READ or WRITE |