• David Howells's avatar
    afs: Don't use folio->private to record partial modification · a34847d4
    David Howells authored
    AFS currently uses folio->private to store the range of bytes within a
    folio that have been modified - the idea being that if we have, say, a 2MiB
    folio and someone writes a single byte, we only have to write back that
    single page and not the whole 2MiB folio - thereby saving on network
    bandwidth.
    
    Remove this, at least for now, and accept the extra network load (which
    doesn't matter in the common case of writing a whole file at a time from
    beginning to end).
    
    This makes folio->private available for netfslib to use.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
    cc: Marc Dionne <marc.dionne@auristor.com>
    cc: linux-afs@lists.infradead.org
    cc: linux-cachefs@redhat.com
    cc: linux-fsdevel@vger.kernel.org
    cc: linux-mm@kvack.org
    a34847d4
write.c 22.4 KB