diff options
author | Vivek Goyal <vgoyal@redhat.com> | 2011-05-19 15:38:20 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-05-20 14:34:52 -0400 |
commit | a23e68695593d00b35a6cddf8e9c9ec03505ecb9 (patch) | |
tree | 954a92fb07408e4b7483881f09d2afc91002bc00 /block/blk-cgroup.c | |
parent | a29a171e7c46c60842b85729280e2f5690372683 (diff) |
blk-cgroup: move some fields of unaccounted_time file under right config option
cgroup unaccounted_time file is created only if CONFIG_DEBUG_BLK_CGROUP=y.
there are some fields which are out side this config option. Fix that.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r-- | block/blk-cgroup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 471fdcc5df85..b0592bca6970 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c | |||
@@ -385,7 +385,9 @@ void blkiocg_update_timeslice_used(struct blkio_group *blkg, unsigned long time, | |||
385 | 385 | ||
386 | spin_lock_irqsave(&blkg->stats_lock, flags); | 386 | spin_lock_irqsave(&blkg->stats_lock, flags); |
387 | blkg->stats.time += time; | 387 | blkg->stats.time += time; |
388 | #ifdef CONFIG_DEBUG_BLK_CGROUP | ||
388 | blkg->stats.unaccounted_time += unaccounted_time; | 389 | blkg->stats.unaccounted_time += unaccounted_time; |
390 | #endif | ||
389 | spin_unlock_irqrestore(&blkg->stats_lock, flags); | 391 | spin_unlock_irqrestore(&blkg->stats_lock, flags); |
390 | } | 392 | } |
391 | EXPORT_SYMBOL_GPL(blkiocg_update_timeslice_used); | 393 | EXPORT_SYMBOL_GPL(blkiocg_update_timeslice_used); |