Explorar el Código

ceph: fix caps debugfs entry

The ceph client structure was not set correctly.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh hace 15 años
padre
commit
bfaf148eb2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      fs/ceph/debugfs.c

+ 1 - 1
fs/ceph/debugfs.c

@@ -261,7 +261,7 @@ static int osdc_show(struct seq_file *s, void *pp)
 
 
 static int caps_show(struct seq_file *s, void *p)
 static int caps_show(struct seq_file *s, void *p)
 {
 {
-	struct ceph_client *client = p;
+	struct ceph_client *client = s->private;
 	int total, avail, used, reserved, min;
 	int total, avail, used, reserved, min;
 
 
 	ceph_reservation_status(client, &total, &avail, &used, &reserved, &min);
 	ceph_reservation_status(client, &total, &avail, &used, &reserved, &min);