summaryrefslogtreecommitdiff
path: root/include/linux/dm-bufio.h
diff options
context:
space:
mode:
authorNathan Huckleberry <nhuck@google.com>2022-07-22 12:38:21 +0300
committerMike Snitzer <snitzer@kernel.org>2022-07-29 00:46:14 +0300
commit0fcb100d50835d6823723ef0898cd565b3796e0a (patch)
treee8b780112db81b64c9f689c38bd52b09b39f7ca7 /include/linux/dm-bufio.h
parent9dd1cd3220eca534f2d47afad7ce85f4c40118d8 (diff)
downloadlinux-0fcb100d50835d6823723ef0898cd565b3796e0a.tar.xz
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.