aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index aa4e2aa86d49..21222f5193fb 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -2699,23 +2699,13 @@ int dm_suspended_md(struct mapped_device *md)
2699 2699
2700int dm_suspended(struct dm_target *ti) 2700int dm_suspended(struct dm_target *ti)
2701{ 2701{
2702 struct mapped_device *md = dm_table_get_md(ti->table); 2702 return dm_suspended_md(dm_table_get_md(ti->table));
2703 int r = dm_suspended_md(md);
2704
2705 dm_put(md);
2706
2707 return r;
2708} 2703}
2709EXPORT_SYMBOL_GPL(dm_suspended); 2704EXPORT_SYMBOL_GPL(dm_suspended);
2710 2705
2711int dm_noflush_suspending(struct dm_target *ti) 2706int dm_noflush_suspending(struct dm_target *ti)
2712{ 2707{
2713 struct mapped_device *md = dm_table_get_md(ti->table); 2708 return __noflush_suspending(dm_table_get_md(ti->table));
2714 int r = __noflush_suspending(md);
2715
2716 dm_put(md);
2717
2718 return r;
2719} 2709}
2720EXPORT_SYMBOL_GPL(dm_noflush_suspending); 2710EXPORT_SYMBOL_GPL(dm_noflush_suspending);
2721 2711