dm-stats.h (498495dba268b20e8eadd7fe93c140c68b6cc9d2) | dm-stats.h (8d394bc4adf588ca4a0650745167cb83f86c18c9) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef DM_STATS_H 3#define DM_STATS_H 4 5#include <linux/types.h> 6#include <linux/mutex.h> 7#include <linux/list.h> 8 --- 18 unchanged lines hidden (view full) --- 27 28struct mapped_device; 29 30int dm_stats_message(struct mapped_device *md, unsigned argc, char **argv, 31 char *result, unsigned maxlen); 32 33void dm_stats_account_io(struct dm_stats *stats, unsigned long bi_rw, 34 sector_t bi_sector, unsigned bi_sectors, bool end, | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef DM_STATS_H 3#define DM_STATS_H 4 5#include <linux/types.h> 6#include <linux/mutex.h> 7#include <linux/list.h> 8 --- 18 unchanged lines hidden (view full) --- 27 28struct mapped_device; 29 30int dm_stats_message(struct mapped_device *md, unsigned argc, char **argv, 31 char *result, unsigned maxlen); 32 33void dm_stats_account_io(struct dm_stats *stats, unsigned long bi_rw, 34 sector_t bi_sector, unsigned bi_sectors, bool end, |
35 unsigned long duration_jiffies, | 35 unsigned long start_time, |
36 struct dm_stats_aux *aux); 37 38static inline bool dm_stats_used(struct dm_stats *st) 39{ 40 return !list_empty(&st->list); 41} 42 43#endif | 36 struct dm_stats_aux *aux); 37 38static inline bool dm_stats_used(struct dm_stats *st) 39{ 40 return !list_empty(&st->list); 41} 42 43#endif |