• C
    Btrfs: zero page past end of inline file items · 93c82d57
    Chris Mason 提交于
    When btrfs_get_extent is reading inline file items for readpage,
    it needs to copy the inline extent into the page.  If the
    inline extent doesn't cover all of the page, that means there
    is a hole in the file, or that our file is smaller than one
    page.
    
    readpage does zeroing for the case where the file is smaller than one
    page, but nobody is currently zeroing for the case where there is
    a hole after the inline item.
    
    This commit changes btrfs_get_extent to zero fill the page past
    the end of the inline item.
    Signed-off-by: NChris Mason <chris.mason@oracle.com>
    93c82d57
inode.c 144.1 KB