Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crush: crush_init_workspace starts with struct crush_work

It is not just a pointer to crush_work, it is the whole structure.
That is not a problem since it only contains a pointer. But it will
be a problem if new data members are added to crush_work.

Reflects ceph.git commit ee957dd431bfbeb6dadaf77764db8e0757417328.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

+1 -1
+1 -1
net/ceph/crush/mapper.c
··· 858 858 * set the pointer first and then reserve the space for it to 859 859 * point to by incrementing the point. 860 860 */ 861 - v += sizeof(struct crush_work *); 861 + v += sizeof(struct crush_work); 862 862 w->work = v; 863 863 v += map->max_buckets * sizeof(struct crush_work_bucket *); 864 864 for (b = 0; b < map->max_buckets; ++b) {