On Thu, Oct 30, 2014 at 3:10 PM, David Howells <dhowells@xxxxxxxxxx> wrote: > ovl_fill_merge() effectively directly casts the buf pointer to an > ovl_readdir_data struct pointer, but the pointer actually points to the > dir_context struct contained therein. > > So use container_of() instead. > > Signed-off-by: David Howells <dhowells@xxxxxxxxxx> Okay, but why don't we have a typed argument of actor then? Being typeless is encouraging exactly the kind of games overlayfs is doing (probably copied mindlessly from some other part of the kernel). Thanks, Miklos -- To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html