diff options
author | Xiao Ni <xni@redhat.com> | 2020-08-25 13:42:59 +0800 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2020-09-24 16:44:45 -0700 |
commit | 2628089b74d5a64bd0bcb5d247a18f78d7b6f4d0 (patch) | |
tree | 47ba9f41e75f0dfaa6fda2a52e37d491b54b00a8 /drivers/md/md.h | |
parent | e287308b8388590ad70e8e88d1cc70a4643bacd7 (diff) | |
download | linux-2628089b74d5a64bd0bcb5d247a18f78d7b6f4d0.tar.gz linux-2628089b74d5a64bd0bcb5d247a18f78d7b6f4d0.tar.bz2 linux-2628089b74d5a64bd0bcb5d247a18f78d7b6f4d0.zip |
md: add md_submit_discard_bio() for submitting discard bio
Move these logic from raid0.c to md.c, so that we can also use it in
raid10.c.
Reviewed-by: Coly Li <colyli@suse.de>
Reviewed-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index f9e2ccdd22c4..543366041911 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -713,6 +713,8 @@ extern void md_write_end(struct mddev *mddev); extern void md_done_sync(struct mddev *mddev, int blocks, int ok); extern void md_error(struct mddev *mddev, struct md_rdev *rdev); extern void md_finish_reshape(struct mddev *mddev); +extern void md_submit_discard_bio(struct mddev *mddev, struct md_rdev *rdev, + struct bio *bio, sector_t start, sector_t size); extern bool __must_check md_flush_request(struct mddev *mddev, struct bio *bio); extern void md_super_write(struct mddev *mddev, struct md_rdev *rdev, |