Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4495a7d4 authored by Kyungmin Park's avatar Kyungmin Park Committed by Jens Axboe
Browse files

CFQ: Fix typo and remove unnecessary semicolon



Fix comment typo and remove unnecessary semicolon at macro

Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent ea9d6553
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -185,7 +185,7 @@ struct cfq_group {
	int nr_cfqq;
	int nr_cfqq;


	/*
	/*
	 * Per group busy queus average. Useful for workload slice calc. We
	 * Per group busy queues average. Useful for workload slice calc. We
	 * create the array for each prio class but at run time it is used
	 * create the array for each prio class but at run time it is used
	 * only for RT and BE class and slot for IDLE class remains unused.
	 * only for RT and BE class and slot for IDLE class remains unused.
	 * This is primarily done to avoid confusion and a gcc warning.
	 * This is primarily done to avoid confusion and a gcc warning.
@@ -369,16 +369,16 @@ CFQ_CFQQ_FNS(wait_busy);
#define cfq_log_cfqq(cfqd, cfqq, fmt, args...)	\
#define cfq_log_cfqq(cfqd, cfqq, fmt, args...)	\
	blk_add_trace_msg((cfqd)->queue, "cfq%d%c %s " fmt, (cfqq)->pid, \
	blk_add_trace_msg((cfqd)->queue, "cfq%d%c %s " fmt, (cfqq)->pid, \
			cfq_cfqq_sync((cfqq)) ? 'S' : 'A', \
			cfq_cfqq_sync((cfqq)) ? 'S' : 'A', \
			blkg_path(&(cfqq)->cfqg->blkg), ##args);
			blkg_path(&(cfqq)->cfqg->blkg), ##args)


#define cfq_log_cfqg(cfqd, cfqg, fmt, args...)				\
#define cfq_log_cfqg(cfqd, cfqg, fmt, args...)				\
	blk_add_trace_msg((cfqd)->queue, "%s " fmt,			\
	blk_add_trace_msg((cfqd)->queue, "%s " fmt,			\
				blkg_path(&(cfqg)->blkg), ##args);      \
				blkg_path(&(cfqg)->blkg), ##args)       \


#else
#else
#define cfq_log_cfqq(cfqd, cfqq, fmt, args...)	\
#define cfq_log_cfqq(cfqd, cfqq, fmt, args...)	\
	blk_add_trace_msg((cfqd)->queue, "cfq%d " fmt, (cfqq)->pid, ##args)
	blk_add_trace_msg((cfqd)->queue, "cfq%d " fmt, (cfqq)->pid, ##args)
#define cfq_log_cfqg(cfqd, cfqg, fmt, args...)		do {} while (0);
#define cfq_log_cfqg(cfqd, cfqg, fmt, args...)		do {} while (0)
#endif
#endif
#define cfq_log(cfqd, fmt, args...)	\
#define cfq_log(cfqd, fmt, args...)	\
	blk_add_trace_msg((cfqd)->queue, "cfq " fmt, ##args)
	blk_add_trace_msg((cfqd)->queue, "cfq " fmt, ##args)