dm-table.c (0a1340c185734a57fbf4775927966ad4a1347b02) dm-table.c (8757b7764f13e336f3c0eb1f634440d4ee4c3a67)
1/*
2 * Copyright (C) 2001 Sistina Software (UK) Limited.
3 * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm.h"

--- 925 unchanged lines hidden (view full) ---

934void dm_table_postsuspend_targets(struct dm_table *t)
935{
936 if (!t)
937 return;
938
939 return suspend_targets(t, 1);
940}
941
1/*
2 * Copyright (C) 2001 Sistina Software (UK) Limited.
3 * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm.h"

--- 925 unchanged lines hidden (view full) ---

934void dm_table_postsuspend_targets(struct dm_table *t)
935{
936 if (!t)
937 return;
938
939 return suspend_targets(t, 1);
940}
941
942void dm_table_resume_targets(struct dm_table *t)
942int dm_table_resume_targets(struct dm_table *t)
943{
943{
944 int i;
944 int i, r = 0;
945
946 for (i = 0; i < t->num_targets; i++) {
947 struct dm_target *ti = t->targets + i;
948
945
946 for (i = 0; i < t->num_targets; i++) {
947 struct dm_target *ti = t->targets + i;
948
949 if (!ti->type->preresume)
950 continue;
951
952 r = ti->type->preresume(ti);
953 if (r)
954 return r;
955 }
956
957 for (i = 0; i < t->num_targets; i++) {
958 struct dm_target *ti = t->targets + i;
959
949 if (ti->type->resume)
950 ti->type->resume(ti);
951 }
960 if (ti->type->resume)
961 ti->type->resume(ti);
962 }
963
964 return 0;
952}
953
954int dm_table_any_congested(struct dm_table *t, int bdi_bits)
955{
956 struct list_head *d, *devices;
957 int r = 0;
958
959 devices = dm_table_get_devices(t);

--- 62 unchanged lines hidden ---
965}
966
967int dm_table_any_congested(struct dm_table *t, int bdi_bits)
968{
969 struct list_head *d, *devices;
970 int r = 0;
971
972 devices = dm_table_get_devices(t);

--- 62 unchanged lines hidden ---