The simplest way to fix it is to unmount filesystem in check_media_change
(actually in destroy_device where we get superblock). But this needs both a
"this fs is supermounted" flag and pointer to top-level fs so supermount can
properly clean up. So I intend to add a member to struct super_block that
points to super block of top-level (supermount) fs.
Are there any alignment/size constraints on struct super_block to be aware
of?
TIA
-andrej
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/