aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-ioctl.c
diff options
context:
space:
mode:
authorKiyoshi Ueda <k-ueda@ct.jp.nec.com>2009-12-10 18:52:26 -0500
committerAlasdair G Kergon <agk@redhat.com>2009-12-10 18:52:26 -0500
commit4f186f8bbfa92bf1a2b39f7a8674348bfdba9437 (patch)
tree9fd65776c0314abf6774f30e542d565e22ae4698 /drivers/md/dm-ioctl.c
parent4d4471cb5c1ec426c0f24818b270dc7b3ad7e655 (diff)
dm: rename dm_suspended to dm_suspended_md
This patch renames dm_suspended() to dm_suspended_md() and keeps it internal to dm. No functional change. Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com> Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com> Cc: Mike Anderson <andmike@linux.vnet.ibm.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-ioctl.c')
-rw-r--r--drivers/md/dm-ioctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 63fd4de25bda..1d669322b27c 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -579,7 +579,7 @@ static int __dev_status(struct mapped_device *md, struct dm_ioctl *param)
579 param->flags &= ~(DM_SUSPEND_FLAG | DM_READONLY_FLAG | 579 param->flags &= ~(DM_SUSPEND_FLAG | DM_READONLY_FLAG |
580 DM_ACTIVE_PRESENT_FLAG); 580 DM_ACTIVE_PRESENT_FLAG);
581 581
582 if (dm_suspended(md)) 582 if (dm_suspended_md(md))
583 param->flags |= DM_SUSPEND_FLAG; 583 param->flags |= DM_SUSPEND_FLAG;
584 584
585 param->dev = huge_encode_dev(disk_devt(disk)); 585 param->dev = huge_encode_dev(disk_devt(disk));
@@ -839,7 +839,7 @@ static int do_suspend(struct dm_ioctl *param)
839 if (param->flags & DM_NOFLUSH_FLAG) 839 if (param->flags & DM_NOFLUSH_FLAG)
840 suspend_flags |= DM_SUSPEND_NOFLUSH_FLAG; 840 suspend_flags |= DM_SUSPEND_NOFLUSH_FLAG;
841 841
842 if (!dm_suspended(md)) 842 if (!dm_suspended_md(md))
843 r = dm_suspend(md, suspend_flags); 843 r = dm_suspend(md, suspend_flags);
844 844
845 if (!r) 845 if (!r)
@@ -881,7 +881,7 @@ static int do_resume(struct dm_ioctl *param)
881 suspend_flags &= ~DM_SUSPEND_LOCKFS_FLAG; 881 suspend_flags &= ~DM_SUSPEND_LOCKFS_FLAG;
882 if (param->flags & DM_NOFLUSH_FLAG) 882 if (param->flags & DM_NOFLUSH_FLAG)
883 suspend_flags |= DM_SUSPEND_NOFLUSH_FLAG; 883 suspend_flags |= DM_SUSPEND_NOFLUSH_FLAG;
884 if (!dm_suspended(md)) 884 if (!dm_suspended_md(md))
885 dm_suspend(md, suspend_flags); 885 dm_suspend(md, suspend_flags);
886 886
887 old_map = dm_swap_table(md, new_map); 887 old_map = dm_swap_table(md, new_map);
@@ -897,7 +897,7 @@ static int do_resume(struct dm_ioctl *param)
897 set_disk_ro(dm_disk(md), 1); 897 set_disk_ro(dm_disk(md), 1);
898 } 898 }
899 899
900 if (dm_suspended(md)) 900 if (dm_suspended_md(md))
901 r = dm_resume(md); 901 r = dm_resume(md);
902 902
903 if (old_map) 903 if (old_map)