/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2021 Red Hat, Inc. All rights reserved. * * This file is released under the GPL. */ #ifndef DM_IO_TRACKER_H #define DM_IO_TRACKER_H #include <linux/jiffies.h> struct dm_io_tracker { … }; static inline void dm_iot_init(struct dm_io_tracker *iot) { … } static inline bool dm_iot_idle_for(struct dm_io_tracker *iot, unsigned long j) { … } static inline unsigned long dm_iot_idle_time(struct dm_io_tracker *iot) { … } static inline void dm_iot_io_begin(struct dm_io_tracker *iot, sector_t len) { … } static inline void dm_iot_io_end(struct dm_io_tracker *iot, sector_t len) { … } #endif