It would be better to paste the patch instead of attaching it. Anyway, note that the snapshot special device is not the target block device for saving the image, so it would be good to avoid that confusion in the naming. I.e. I would rename is_hibernate_snapshot_dev() to something like is_hibernate_image_dev() or is_hibernate_resume_dev() (for consistency with the resume= kernel command line parameter name). Thanks!