All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] cleanup mixed stat functions
@ 2022-01-17 15:50 Niklas Cassel
  2022-01-17 15:50 ` [PATCH v3 1/2] stat: remove duplicated code in show_mixed_ddir_status() Niklas Cassel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Niklas Cassel @ 2022-01-17 15:50 UTC (permalink / raw)
  To: axboe; +Cc: fio, damien.lemoal, Niklas Cassel

From: Niklas Cassel <niklas.cassel@wdc.com>

The mixed stat functions are called in case option
unified_rw_reporting=both was used.

Patch 1/2 simplifies show_mixed_ddir_status().
Patch 2/2 moves common code from the mixed stat functions
to a new helper.

Changes since v3:
-Add error handling for malloc() in the new helper.
-Change the mixed stat functions to only call show_*() if the helper
 returned non-NULL.

Changes since v2:
-Make use of init_thread_stat().


Niklas Cassel (2):
  stat: remove duplicated code in show_mixed_ddir_status()
  stat: move unified=both mixed allocation and calculation to new helper

 stat.c | 235 +++++++++++----------------------------------------------
 1 file changed, 44 insertions(+), 191 deletions(-)

-- 
2.34.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-17 23:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17 15:50 [PATCH v3 0/2] cleanup mixed stat functions Niklas Cassel
2022-01-17 15:50 ` [PATCH v3 1/2] stat: remove duplicated code in show_mixed_ddir_status() Niklas Cassel
2022-01-17 15:50 ` [PATCH v3 2/2] stat: move unified=both mixed allocation and calculation to new helper Niklas Cassel
2022-01-17 23:21 ` [PATCH v3 0/2] cleanup mixed stat functions Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.