Tejun Heo
4452226ea2
writeback: move backing_dev_info->state into bdi_writeback
...
Currently, a bdi (backing_dev_info) embeds single wb (bdi_writeback)
and the role of the separation is unclear. For cgroup support for
writeback IOs, a bdi will be updated to host multiple wb's where each
wb serves writeback IOs of a different cgroup on the bdi. To achieve
that, a wb should carry all states necessary for servicing writeback
IOs for a cgroup independently.
This patch moves bdi->state into wb.
* enum bdi_state is renamed to wb_state and the prefix of all enums is
changed from BDI_ to WB_.
* Explicit zeroing of bdi->state is removed without adding zeoring of
wb->state as the whole data structure is zeroed on init anyway.
* As there's still only one bdi_writeback per backing_dev_info, all
uses of bdi->state are mechanically replaced with bdi->wb.state
introducing no behavior changes.
Signed-off-by: Tejun Heo <tj@kernel.org >
Reviewed-by: Jan Kara <jack@suse.cz >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Wu Fengguang <fengguang.wu@intel.com >
Cc: drbd-dev@lists.linbit.com
Cc: Neil Brown <neilb@suse.de >
Cc: Alasdair Kergon <agk@redhat.com >
Cc: Mike Snitzer <snitzer@redhat.com >
Signed-off-by: Jens Axboe <axboe@fb.com >
2015-06-02 08:33:34 -06:00
..
2015-04-22 18:33:48 +03:00
2015-04-22 09:24:55 -07:00
2015-04-22 18:33:43 +03:00
2015-04-24 09:49:37 -07:00
2015-04-24 08:23:45 -07:00
2015-04-26 13:36:02 -07:00
2015-04-15 15:51:50 -04:00
2015-04-24 09:49:37 -07:00
2015-04-13 20:08:38 +02:00
2015-04-24 09:49:37 -07:00
2015-04-22 08:00:41 +10:00
2015-04-10 19:16:03 +01:00
2015-04-15 09:00:47 -07:00
2015-04-23 15:16:37 -04:00
2015-04-15 16:35:22 -07:00
2015-04-24 08:23:45 -07:00
2015-04-22 08:00:42 +10:00
2015-06-02 08:33:34 -06:00
2015-06-02 08:33:34 -06:00
2015-04-17 09:03:56 -04:00
2015-04-17 09:03:53 -04:00
2015-05-22 08:58:57 -06:00
2015-06-02 08:33:34 -06:00
2015-06-01 14:35:56 -06:00
2015-05-29 13:11:32 -06:00
2015-04-14 15:44:14 -04:00
2015-04-15 16:35:22 -07:00
2015-06-02 08:33:34 -06:00
2015-04-14 16:49:03 -07:00
2015-04-10 17:45:30 -07:00
2015-04-24 08:23:45 -07:00
2015-04-14 16:49:04 -07:00
2015-04-15 16:35:17 -07:00
2015-05-04 17:49:51 +08:00
2015-05-04 17:49:51 +08:00
2015-05-04 17:49:51 +08:00
2015-04-13 10:19:30 +02:00
2015-04-16 12:33:51 +09:30
2015-04-15 16:35:22 -07:00
2015-04-15 15:05:28 -04:00
2015-04-14 20:21:54 -07:00
2015-04-21 14:47:16 +05:30
2015-04-17 23:18:53 +05:30
2015-04-14 16:49:05 -07:00
2015-04-10 15:08:57 -07:00
2015-04-09 11:39:55 -05:00
2015-05-20 09:05:42 -06:00
2015-04-14 14:37:47 -07:00
2015-04-14 16:49:04 -07:00
2015-04-13 23:43:34 +02:00
2015-04-14 09:25:26 -07:00
2015-04-15 16:35:19 -07:00
2015-04-14 20:21:54 -07:00
2015-05-05 13:40:42 -06:00
2015-04-10 21:57:22 -07:00
2015-04-08 23:28:28 +02:00
2015-04-21 09:42:58 -07:00
2015-04-18 12:32:59 -07:00
2015-04-15 16:35:22 -07:00
2015-04-11 11:17:28 +02:00
2015-04-09 09:40:24 +02:00
2015-04-15 16:35:20 -07:00
2015-04-21 09:44:55 -03:00
2015-04-17 09:03:55 -04:00
2015-04-23 16:52:01 +02:00
2015-04-15 16:35:17 -07:00
2015-04-14 13:58:48 -07:00
2015-04-13 16:42:16 -07:00
2015-04-14 16:49:06 -07:00
2015-06-02 08:33:34 -06:00
2015-04-14 16:49:00 -07:00
2015-04-15 16:35:18 -07:00
2015-04-14 16:49:05 -07:00
2015-04-17 09:04:07 -04:00
2015-06-02 08:33:33 -06:00
2015-04-15 16:35:16 -07:00
2015-04-14 10:49:03 -07:00
2015-04-18 11:20:31 -04:00
2015-04-11 15:27:37 -04:00
2015-04-29 14:59:16 -04:00
2015-04-24 20:51:40 +02:00
2015-04-07 15:25:55 -04:00
2015-04-13 16:35:16 -04:00
2015-04-21 16:16:04 -04:00
2015-04-26 17:33:59 -07:00
2015-04-23 14:36:28 -04:00
2015-04-14 16:48:59 -07:00
2015-04-07 19:11:06 -06:00
2015-04-14 19:35:44 -05:00
2015-04-14 19:23:24 -05:00
2015-04-24 08:46:18 -07:00
2015-04-14 16:49:05 -07:00
2015-04-15 16:35:19 -07:00
2015-06-02 08:33:33 -06:00
2015-04-08 16:25:25 -05:00
2015-04-09 14:20:11 -05:00
2015-04-16 13:53:32 -05:00
2015-04-12 21:03:31 +02:00
2015-04-15 16:35:23 -07:00
2015-04-15 16:35:23 -07:00
2015-04-24 11:38:12 -04:00
2015-04-15 16:35:19 -07:00
2015-04-29 14:59:16 -04:00
2015-04-27 15:49:30 +02:00
2015-04-15 09:00:47 -07:00
2015-04-10 14:39:53 +02:00
2015-04-25 15:49:49 -04:00
2015-04-14 16:48:59 -07:00
2015-04-20 09:08:49 -07:00
2015-04-11 15:53:35 -04:00
2015-04-14 09:50:27 -07:00
2015-04-16 13:58:42 -04:00
2015-04-16 19:02:04 -04:00
2015-05-19 09:19:59 -06:00
2015-04-17 09:04:07 -04:00
2015-04-07 18:36:39 -04:00
2015-04-08 09:39:56 -04:00
2015-04-28 14:26:20 +02:00
2015-04-15 16:35:22 -07:00
2015-04-15 16:35:22 -07:00
2015-04-11 22:29:44 -04:00
2015-04-28 12:48:57 +02:00
2015-04-07 12:58:35 -05:00
2015-04-17 09:03:54 -04:00
2015-04-14 18:06:47 -07:00
2015-04-07 11:14:38 -06:00
2015-04-13 21:04:16 +09:30
2015-04-15 12:41:14 +09:30
2015-04-15 16:35:20 -07:00