• J
    Btrfs: fix extent logging with O_DIRECT into prealloc · eb384b55
    Josef Bacik 提交于
    This is the same as the fix from commit
    
    Btrfs: fix bad extent logging
    
    but for O_DIRECT.  I missed this when I fixed the problem originally, we were
    still using the em for the orig_start and orig_block_len, which would be the
    merged extent.  We need to use the actual extent from the on disk file extent
    item, which we have to lookup to make sure it's ok to nocow anyway so just pass
    in some pointers to hold this info.  Thanks,
    
    Cc: stable@vger.kernel.org
    Signed-off-by: NJosef Bacik <jbacik@fusionio.com>
    eb384b55
inode.c 230.7 KB