• Stephen Lord's avatar
    [XFS] Contributed fix from ASANO Masahiro <masano@tnes.nec.co.jp>. In calculating · fe768403
    Stephen Lord authored
    the layout of a log record for a buffer, the linux code deals with buffers
    which are not contiguous in memory - this only applies to an inode buffer.
    This adds one more fragmentation case to the code, and a line was missing
    from this. The end result would be the logging of too much data if this
    was not the last component of the buffer.
    
    The code was definitely wrong, but I think the chances of hitting this were
    pretty slim, and the resulting error would only matter if there was a
    crash shortly afterward.
    
    SGI Modid: 2.5.x-xfs:slinx:131221a
    fe768403
xfs_buf_item.c 32.5 KB