#include <linux/bio.h>
#include <linux/blk-crypto.h>
#include <linux/blk-integrity.h>
#include "dm-core.h"
static inline bool dm_bvec_iter_rewind(const struct bio_vec *bv,
struct bvec_iter *iter,
unsigned int bytes)
{ … }
#if defined(CONFIG_BLK_DEV_INTEGRITY)
static void dm_bio_integrity_rewind(struct bio *bio, unsigned int bytes_done)
{ … }
#else
static inline void dm_bio_integrity_rewind(struct bio *bio,
unsigned int bytes_done)
{
}
#endif
#if defined(CONFIG_BLK_INLINE_ENCRYPTION)
static void dm_bio_crypt_dun_decrement(u64 dun[BLK_CRYPTO_DUN_ARRAY_SIZE],
unsigned int dec)
{ … }
static void dm_bio_crypt_rewind(struct bio *bio, unsigned int bytes)
{ … }
#else
static inline void dm_bio_crypt_rewind(struct bio *bio, unsigned int bytes)
{
}
#endif
static inline void dm_bio_rewind_iter(const struct bio *bio,
struct bvec_iter *iter, unsigned int bytes)
{ … }
static void dm_bio_rewind(struct bio *bio, unsigned int bytes)
{ … }
void dm_io_rewind(struct dm_io *io, struct bio_set *bs)
{ … }