• Andreas Gruenbacher's avatar
    gfs2: buffered write prefaulting · fa5dfa64
    Andreas Gruenbacher authored
    In gfs2_file_buffered_write, to increase the likelihood that all the
    user memory we're trying to write will be resident in memory, carry out
    the write in chunks and fault in each chunk of user memory before trying
    to write it.  Otherwise, some workloads will trigger frequent short
    "internal" writes, causing filesystem blocks to be allocated and then
    partially deallocated again when writing into holes, which is wasteful
    and breaks reservations.
    
    Neither the chunked writes nor any of the short "internal" writes are
    user visible.
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    fa5dfa64
file.c 40 KB