• Theodore Ts'o's avatar
    ext4: make sure ex.fe_logical is initialized · ab0c00fc
    Theodore Ts'o authored
    The lowest levels of mballoc set all of the fields of struct
    ext4_free_extent except for fe_logical, since they are just trying to
    find the requested free set of blocks, and the logical block hasn't
    been set yet.  This makes some static code checkers sad.  Set it to
    various different debug values, which would be useful when
    debugging mballoc if these values were to ever show up due to the
    parts of mballoc triyng to use ac->ac_b_ex.fe_logical before it is
    properly upper layers of mballoc failing to properly set, usually by
    ext4_mb_use_best_found().
    
    Addresses-Coverity-Id: #139697
    Addresses-Coverity-Id: #139698
    Addresses-Coverity-Id: #139699
    Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
    
    ab0c00fc
mballoc.c 143 KB