Tejun Heo 074a7aca7a block: move stats from disk to part0
Move stats related fields - stamp, in_flight, dkstats - from disk to
part0 and unify stat handling such that...

* part_stat_*() now updates part0 together if the specified partition
  is not part0.  ie. part_stat_*() are now essentially all_stat_*().

* {disk|all}_stat_*() are gone.

* part_round_stats() is updated similary.  It handles part0 stats
  automatically and disk_round_stats() is killed.

* part_{inc|dec}_in_fligh() is implemented which automatically updates
  part0 stats for parts other than part0.

* disk_map_sector_rcu() is updated to return part0 if no part matches.
  Combined with the above changes, this makes NULL special case
  handling in callers unnecessary.

* Separate stats show code paths for disk are collapsed into part
  stats show code paths.

* Rename disk_stat_lock/unlock() to part_stat_lock/unlock()

While at it, reposition stat handling macros a bit and add missing
parentheses around macro parameters.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-10-09 08:56:08 +02:00
..
2008-07-25 10:53:30 -07:00
2008-08-10 23:32:07 +02:00
2008-07-27 01:26:17 +02:00
2008-08-05 14:33:46 -07:00
2008-02-05 03:20:13 -08:00
2008-02-06 10:41:02 -08:00
2008-07-01 11:28:06 +10:00
2008-08-12 10:13:38 +10:00
2008-06-19 10:42:17 +10:00
2008-03-04 13:41:23 +01:00
2008-07-24 10:47:24 -07:00
2008-07-24 10:47:33 -07:00
2008-07-24 10:47:33 -07:00
2008-04-29 08:11:16 -07:00
2008-06-06 11:29:10 -07:00
2008-10-09 08:56:03 +02:00
2008-05-29 01:38:46 -07:00
2008-04-22 15:16:32 -05:00
2008-08-04 21:56:09 -07:00
2008-07-04 10:40:05 -07:00
2008-02-03 17:45:46 +02:00
2008-07-25 10:53:33 -07:00
2008-05-01 08:03:59 -07:00
2008-07-20 17:12:38 -07:00
2008-02-03 15:42:53 +02:00
2008-07-22 17:30:57 -07:00
2008-07-21 12:00:37 +01:00
2008-04-21 11:22:28 -05:00
2008-04-25 13:26:55 +01:00
2008-04-25 13:26:55 +01:00
2008-07-21 12:00:37 +01:00
2008-04-25 13:26:55 +01:00
2008-02-08 09:22:24 -08:00
2008-04-28 08:58:30 -07:00
2008-02-07 08:42:30 -08:00
2008-07-24 10:47:29 -07:00
2008-08-20 13:19:51 -07:00
2008-05-16 17:22:26 -04:00
2008-08-12 16:07:31 -07:00
2008-07-16 23:27:03 +02:00
2008-07-26 20:53:20 -04:00
2008-07-25 10:53:48 -07:00
2008-07-20 17:12:36 -07:00
2008-10-09 08:56:08 +02:00
2008-07-25 10:53:30 -07:00
2008-07-20 17:12:36 -07:00
2008-07-23 15:25:21 +02:00
2008-05-20 16:44:43 +02:00
2008-04-22 11:34:59 +02:00
2008-02-05 09:44:19 -08:00
2008-04-04 18:36:49 +02:00
2008-08-08 15:13:27 +01:00
2008-08-28 08:33:23 +02:00
2008-10-05 18:23:27 +02:00
2008-07-25 10:53:42 -07:00
2008-06-11 21:00:38 -07:00
2008-07-18 18:05:19 -07:00
2008-06-11 21:00:38 -07:00
2008-07-14 22:49:06 -07:00
2008-07-03 17:51:57 +09:00
2008-08-02 18:36:10 +01:00
2008-03-17 22:48:46 -07:00
2008-07-25 10:53:39 -07:00
2008-05-05 16:47:14 +10:00
2008-06-11 21:00:38 -07:00
2008-04-29 08:06:15 -07:00
2008-04-19 19:10:28 -07:00
2008-07-20 17:12:37 -07:00
2008-06-04 17:50:17 +01:00
2008-05-01 08:03:58 -07:00
2008-05-20 12:17:39 -04:00
2008-07-30 09:41:45 -07:00
2008-07-24 10:47:17 -07:00
2008-07-04 10:40:05 -07:00
2008-04-19 19:44:57 +02:00
2008-08-25 17:28:25 +03:00
2008-07-23 09:49:56 +01:00
2008-09-01 09:47:16 +02:00
2008-02-03 17:45:46 +02:00
2008-08-11 15:25:07 +02:00
2008-02-06 10:41:01 -08:00
2008-10-09 08:56:06 +02:00
2008-05-23 22:26:03 +02:00
2008-04-29 08:06:01 -07:00
2008-07-27 01:56:38 +02:00
2008-07-27 01:54:58 +02:00
2008-08-02 16:28:50 +02:00
2008-08-16 16:45:56 -07:00
2008-08-16 16:45:56 -07:00
2008-07-28 16:30:21 -07:00
2008-07-24 10:47:24 -07:00
2008-07-25 10:53:34 -07:00
2008-06-06 11:29:12 -07:00
2008-02-08 09:22:31 -08:00
2008-04-28 08:58:29 -07:00
2008-08-26 10:37:20 -07:00
2008-08-04 23:04:08 -07:00
2008-04-19 16:54:56 -04:00
2008-08-04 21:31:34 -07:00
2008-08-04 21:31:34 -07:00
2008-07-26 12:00:03 -07:00
2008-02-14 21:13:33 -08:00
2008-06-10 14:37:03 -07:00
2008-04-29 08:06:02 -07:00
2008-02-07 23:11:56 -08:00
2008-04-29 08:06:02 -07:00
2008-05-06 12:01:41 -04:00
2008-08-05 14:33:50 -07:00
2008-09-16 19:35:05 -07:00
2008-06-11 21:00:38 -07:00
2008-06-11 21:00:38 -07:00
2008-07-26 20:53:12 -04:00
2008-08-07 17:18:47 -07:00
2008-05-19 16:25:39 +01:00
2008-10-02 15:53:13 -07:00
2008-07-25 10:53:29 -07:00
2008-08-11 09:30:24 +02:00
2008-07-25 10:53:29 -07:00
2008-01-30 13:31:47 +01:00
2008-04-29 08:05:59 -07:00
2008-05-25 07:09:47 +02:00
2008-08-20 15:40:32 -07:00
2008-07-25 21:45:49 -07:00
2008-09-05 18:14:35 +02:00
2008-08-17 22:47:30 +10:00
2008-07-25 10:53:42 -07:00
2008-07-24 08:31:21 -04:00
2008-04-25 00:25:08 +02:00
2008-02-07 08:42:34 -08:00
2008-04-28 08:58:32 -07:00
2008-07-24 10:47:24 -07:00
2008-02-07 08:42:30 -08:00
2008-08-15 19:52:30 -07:00
2008-08-05 09:28:47 +03:00
2008-07-25 10:53:30 -07:00
2008-06-20 14:05:53 -06:00
2008-07-27 01:47:00 +02:00
2008-01-30 13:31:20 +01:00
2008-01-30 13:31:20 +01:00
2008-08-11 09:30:24 +02:00
2008-07-20 17:12:37 -07:00
2008-07-26 12:00:12 -07:00
2008-07-26 20:53:12 -04:00
2008-06-12 10:48:00 +02:00
2008-05-01 08:03:59 -07:00
2008-09-05 14:39:38 -07:00
2008-07-20 17:12:34 -07:00
2008-08-15 10:34:07 -07:00
2008-04-17 20:05:36 +02:00
2008-07-21 15:15:55 -07:00
2008-05-09 07:45:18 -07:00
2008-08-16 16:45:56 -07:00
2008-07-24 10:47:14 -07:00
2008-07-25 10:53:40 -07:00