aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-03-03 07:01:43 -0700
committerSong Liu <song@kernel.org>2024-03-06 08:59:53 -0800
commite305fce1883128a9468efe1876a057df48a261d6 (patch)
treedfc4adba4432e5d383a607bfb11bd90c38490827 /drivers/md/md.h
parentmd: add a mddev_is_dm helper (diff)
downloadwireguard-linux-e305fce1883128a9468efe1876a057df48a261d6.tar.xz
wireguard-linux-e305fce1883128a9468efe1876a057df48a261d6.zip
md: add queue limit helpers
Add a few helpers that wrap the block queue limits API for use in MD. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed--by: Song Liu <song@kernel.org> Tested-by: Song Liu <song@kernel.org> Signed-off-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20240303140150.5435-5-hch@lst.de
Diffstat (limited to '')
-rw-r--r--drivers/md/md.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index d5e99653c690..0d1119be0b50 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -908,6 +908,9 @@ void md_autostart_arrays(int part);
int md_set_array_info(struct mddev *mddev, struct mdu_array_info_s *info);
int md_add_new_disk(struct mddev *mddev, struct mdu_disk_info_s *info);
int do_md_run(struct mddev *mddev);
+void mddev_stack_rdev_limits(struct mddev *mddev, struct queue_limits *lim);
+int mddev_stack_new_rdev(struct mddev *mddev, struct md_rdev *rdev);
+void mddev_update_io_opt(struct mddev *mddev, unsigned int nr_stripes);
extern const struct block_device_operations md_fops;