aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/dm-bufio.h
diff options
context:
space:
mode:
authorNathan Huckleberry <nhuck@google.com>2022-07-22 09:38:21 +0000
committerMike Snitzer <snitzer@kernel.org>2022-07-28 17:46:14 -0400
commit0fcb100d50835d6823723ef0898cd565b3796e0a (patch)
treee8b780112db81b64c9f689c38bd52b09b39f7ca7 /include/linux/dm-bufio.h
parentdm: fix dm-raid crash if md_handle_request() splits bio (diff)
downloadwireguard-linux-0fcb100d50835d6823723ef0898cd565b3796e0a.tar.xz
wireguard-linux-0fcb100d50835d6823723ef0898cd565b3796e0a.zip
dm bufio: Add flags argument to dm_bufio_client_create
Add a flags argument to dm_bufio_client_create and update all the callers. This is in preparation to add the DM_BUFIO_NO_SLEEP flag. Signed-off-by: Nathan Huckleberry <nhuck@google.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'include/linux/dm-bufio.h')
-rw-r--r--include/linux/dm-bufio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/dm-bufio.h b/include/linux/dm-bufio.h
index 90bd558a17f5..e21480715255 100644
--- a/include/linux/dm-bufio.h
+++ b/include/linux/dm-bufio.h
@@ -24,7 +24,8 @@ struct dm_bufio_client *
dm_bufio_client_create(struct block_device *bdev, unsigned block_size,
unsigned reserved_buffers, unsigned aux_size,
void (*alloc_callback)(struct dm_buffer *),
- void (*write_callback)(struct dm_buffer *));
+ void (*write_callback)(struct dm_buffer *),
+ unsigned int flags);
/*
* Release a buffered IO cache.