• Joern Engel's avatar
    [LogFS] Prevent memory corruption on large deletes · 032d8f72
    Joern Engel authored
    Removing sufficiently large files would create aliases for a large
    number of segments.  This in turn results in a large number of journal
    entries and an overflow of s_je_array.
    
    Cheap fix is to add a BUG_ON, turning memory corruption into something
    annoying, but less dangerous.  Real fix is to count the number of
    affected segments and prevent the problem completely.
    Signed-off-by: default avatarJoern Engel <joern@logfs.org>
    032d8f72
super.c 16.2 KB