]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: use alloc_pg_mapping() in __decode_pg_upmap_items()
authorIlya Dryomov <idryomov@gmail.com>
Fri, 7 Jul 2017 14:14:45 +0000 (16:14 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 17 Jul 2017 12:54:58 +0000 (14:54 +0200)
commitf5cc6898650210a90669437d2d9a3fd564ff7d88
treeca2b70991fbcb692364249209970b7ca806a2477
parentc2acfd95d0c7df0bf6826d9d1ca3796160728a42
libceph: use alloc_pg_mapping() in __decode_pg_upmap_items()

... otherwise we die in insert_pg_mapping(), which wants pg->node to be
empty, i.e. initialized with RB_CLEAR_NODE.

Fixes: 6f428df47dae ("libceph: pg_upmap[_items] infrastructure")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osdmap.c