summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-02-23 12:31:10 -0800
committerShaohua Li <shli@fb.com>2017-03-09 09:01:29 -0800
commit99b3d74ec05c4a4c57766a90d65b53d78ab06404 (patch)
treefa8a7d4159420d94ff3419f9a1d43e24ea1fb408 /drivers/md/md.h
parent6d399783e9d4e9bd44931501948059d24ad96ff8 (diff)
downloadlinux-99b3d74ec05c4a4c57766a90d65b53d78ab06404.tar.gz
linux-99b3d74ec05c4a4c57766a90d65b53d78ab06404.tar.bz2
linux-99b3d74ec05c4a4c57766a90d65b53d78ab06404.zip
md: delete dead code
Nobody is using mddev_check_plugged(), so delete the dead code Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index b8859cbf84b6..dde8ecb760c8 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -676,16 +676,10 @@ extern void mddev_resume(struct mddev *mddev);
extern struct bio *bio_alloc_mddev(gfp_t gfp_mask, int nr_iovecs,
struct mddev *mddev);
-extern void md_unplug(struct blk_plug_cb *cb, bool from_schedule);
extern void md_reload_sb(struct mddev *mddev, int raid_disk);
extern void md_update_sb(struct mddev *mddev, int force);
extern void md_kick_rdev_from_array(struct md_rdev * rdev);
struct md_rdev *md_find_rdev_nr_rcu(struct mddev *mddev, int nr);
-static inline int mddev_check_plugged(struct mddev *mddev)
-{
- return !!blk_check_plugged(md_unplug, mddev,
- sizeof(struct blk_plug_cb));
-}
static inline void rdev_dec_pending(struct md_rdev *rdev, struct mddev *mddev)
{