From 3139853cca4fd784d5c54a6167abba5ba6ed9e69 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 12 Jul 2003 21:30:00 -0700 Subject: [PATCH] [PATCH] fs accounting, part 2 The accounting works now, but I still think this last bit should be added as well. This makes absolutely sure we only account fs requests, at both ends. Better safe than sorry. --- drivers/block/ll_rw_blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c index 29e94321f8ffa..3d9ab7a4cb467 100644 --- a/drivers/block/ll_rw_blk.c +++ b/drivers/block/ll_rw_blk.c @@ -1546,7 +1546,7 @@ void drive_stat_acct(struct request *rq, int nr_sectors, int new_io) { int rw = rq_data_dir(rq); - if (!rq->rq_disk) + if (!blk_fs_request(rq) || !rq->rq_disk) return; if (rw == READ) { -- 2.53.0