aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph/debugfs.c
diff options
context:
space:
mode:
authorIlya Dryomov <ilya.dryomov@inktank.com>2014-03-21 13:05:29 -0400
committerSage Weil <sage@inktank.com>2014-04-05 00:07:57 -0400
commit35a935d75d51abe58d3427a8b4ae3745a5a14e1c (patch)
tree0ad881fa4d6c3417e10d07cd6423751cf68e6a1f /net/ceph/debugfs.c
parentec7af97258396161e6effba7e788c3fc3cb55263 (diff)
libceph: generalize ceph_pg_mapping
In preparation for adding support for primary_temp mappings, generalize struct ceph_pg_mapping so it can hold mappings other than pg_temp. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'net/ceph/debugfs.c')
-rw-r--r--net/ceph/debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c
index c45d235e774e..5865f2c9580a 100644
--- a/net/ceph/debugfs.c
+++ b/net/ceph/debugfs.c
@@ -88,9 +88,9 @@ static int osdmap_show(struct seq_file *s, void *p)
88 88
89 seq_printf(s, "pg_temp %llu.%x [", pg->pgid.pool, 89 seq_printf(s, "pg_temp %llu.%x [", pg->pgid.pool,
90 pg->pgid.seed); 90 pg->pgid.seed);
91 for (i = 0; i < pg->len; i++) 91 for (i = 0; i < pg->pg_temp.len; i++)
92 seq_printf(s, "%s%d", (i == 0 ? "" : ","), 92 seq_printf(s, "%s%d", (i == 0 ? "" : ","),
93 pg->osds[i]); 93 pg->pg_temp.osds[i]);
94 seq_printf(s, "]\n"); 94 seq_printf(s, "]\n");
95 } 95 }
96 96