• T
    ext4: fix EOFBLOCKS_FL handling · 58590b06
    Theodore Ts'o 提交于
    It turns out we have several problems with how EOFBLOCKS_FL is
    handled.  First of all, there was a fencepost error where we were not
    clearing the EOFBLOCKS_FL when fill in the last uninitialized block,
    but rather when we allocate the next block _after_ the uninitalized
    block.  Secondly we were not testing to see if we needed to clear the
    EOFBLOCKS_FL when writing to the file O_DIRECT or when were converting
    an uninitialized block (which is the most common case).
    
    Google-Bug-Id: 2928259
    Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
    58590b06
extents.c 104.8 KB