* [PATCH] block/genhd: Change some numerals into macros
@ 2011-03-02 11:56 namei.unix
2011-03-02 16:00 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: namei.unix @ 2011-03-02 11:56 UTC (permalink / raw)
To: linux-kernel; +Cc: Jens Axboe
Rename the numerals in the diskstats_show() into the macros.
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
---
block/genhd.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/block/genhd.c b/block/genhd.c
index af9e7f8..00c102a 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -1164,14 +1164,14 @@ static int diskstats_show(struct seq_file *seqf, void *v)
"%u %lu %lu %llu %u %u %u %u\n",
MAJOR(part_devt(hd)), MINOR(part_devt(hd)),
disk_name(gp, hd->partno, buf),
- part_stat_read(hd, ios[0]),
- part_stat_read(hd, merges[0]),
- (unsigned long long)part_stat_read(hd, sectors[0]),
- jiffies_to_msecs(part_stat_read(hd, ticks[0])),
- part_stat_read(hd, ios[1]),
- part_stat_read(hd, merges[1]),
- (unsigned long long)part_stat_read(hd, sectors[1]),
- jiffies_to_msecs(part_stat_read(hd, ticks[1])),
+ part_stat_read(hd, ios[READ]),
+ part_stat_read(hd, merges[READ]),
+ (unsigned long long)part_stat_read(hd, sectors[READ]),
+ jiffies_to_msecs(part_stat_read(hd, ticks[READ])),
+ part_stat_read(hd, ios[WRITE]),
+ part_stat_read(hd, merges[WRITE]),
+ (unsigned long long)part_stat_read(hd, sectors[WRITE]),
+ jiffies_to_msecs(part_stat_read(hd, ticks[WRITE])),
part_in_flight(hd),
jiffies_to_msecs(part_stat_read(hd, io_ticks)),
jiffies_to_msecs(part_stat_read(hd, time_in_queue))
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] block/genhd: Change some numerals into macros
2011-03-02 11:56 [PATCH] block/genhd: Change some numerals into macros namei.unix
@ 2011-03-02 16:00 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2011-03-02 16:00 UTC (permalink / raw)
To: namei.unix; +Cc: linux-kernel
On 2011-03-02 06:56, namei.unix@gmail.com wrote:
> Rename the numerals in the diskstats_show() into the macros.
Added for 2.6.39, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-02 16:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 11:56 [PATCH] block/genhd: Change some numerals into macros namei.unix
2011-03-02 16:00 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox