diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c index f5360a6260ff4c87057ff8ee1e52000fa588352a..87795a361d0931425fbe24bf1ef11aac5536e07d 100644 --- a/drivers/md/dm-bufio.c +++ b/drivers/md/dm-bufio.c @@ -6,7 +6,7 @@ * This file is released under the GPL. */ -#include "dm-bufio.h" +#include #include #include @@ -1478,13 +1478,13 @@ void dm_bufio_forget(struct dm_bufio_client *c, sector_t block) dm_bufio_unlock(c); } -EXPORT_SYMBOL(dm_bufio_forget); +EXPORT_SYMBOL_GPL(dm_bufio_forget); void dm_bufio_set_minimum_buffers(struct dm_bufio_client *c, unsigned n) { c->minimum_buffers = n; } -EXPORT_SYMBOL(dm_bufio_set_minimum_buffers); +EXPORT_SYMBOL_GPL(dm_bufio_set_minimum_buffers); unsigned dm_bufio_get_block_size(struct dm_bufio_client *c) { @@ -1690,7 +1690,7 @@ struct dm_bufio_client *dm_bufio_client_create(struct block_device *bdev, unsign INIT_LIST_HEAD(&c->reserved_buffers); c->need_reserved_buffers = reserved_buffers; - c->minimum_buffers = DM_BUFIO_MIN_BUFFERS; + dm_bufio_set_minimum_buffers(c, DM_BUFIO_MIN_BUFFERS); init_waitqueue_head(&c->free_buffer_wait); c->async_write_error = 0; diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 6c81b11d05211d2103ecf44c7d8c336ab1f9ecbd..77d9fe58dae22118e872571da2a0542a7fe44b08 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -18,7 +18,7 @@ #include #include #include -#include "dm-bufio.h" +#include #define DM_MSG_PREFIX "integrity" diff --git a/drivers/md/dm-snap-persistent.c b/drivers/md/dm-snap-persistent.c index c5534d294773fc0267a1b4c7438a3316e74d417a..3c50c4e4da8f39ee56703f9e0abc2461f8b96659 100644 --- a/drivers/md/dm-snap-persistent.c +++ b/drivers/md/dm-snap-persistent.c @@ -14,7 +14,7 @@ #include #include #include -#include "dm-bufio.h" +#include #define DM_MSG_PREFIX "persistent snapshot" #define DM_CHUNK_SIZE_DEFAULT_SECTORS 32 /* 16KB */ diff --git a/drivers/md/dm-verity.h b/drivers/md/dm-verity.h index b675bc015512b5f1e96f22536f153ef34e6e8419..69f9a298f8c965d125de3eea598b8ad83f68cc92 100644 --- a/drivers/md/dm-verity.h +++ b/drivers/md/dm-verity.h @@ -12,7 +12,7 @@ #ifndef DM_VERITY_H #define DM_VERITY_H -#include "dm-bufio.h" +#include #include #include diff --git a/drivers/md/persistent-data/dm-block-manager.c b/drivers/md/persistent-data/dm-block-manager.c index ea15d220ced7c1314d8c51471d73fa1e28bb74da..492a3f8ac1199b841215758119e4167b46d9b71e 100644 --- a/drivers/md/persistent-data/dm-block-manager.c +++ b/drivers/md/persistent-data/dm-block-manager.c @@ -5,8 +5,8 @@ */ #include "dm-block-manager.h" #include "dm-persistent-data-internal.h" -#include "../dm-bufio.h" +#include #include #include #include diff --git a/drivers/md/dm-bufio.h b/include/linux/dm-bufio.h similarity index 98% rename from drivers/md/dm-bufio.h rename to include/linux/dm-bufio.h index be732d3f86119a0698f6ce32e6c4951997898e9f..3c8b7d274bd9b85d2238a6b7d673566983eec570 100644 --- a/drivers/md/dm-bufio.h +++ b/include/linux/dm-bufio.h @@ -6,8 +6,8 @@ * This file is released under the GPL. */ -#ifndef DM_BUFIO_H -#define DM_BUFIO_H +#ifndef _LINUX_DM_BUFIO_H +#define _LINUX_DM_BUFIO_H #include #include