• David Howells's avatar
    netfs: Extend the netfs_io_*request structs to handle writes · 16af134c
    David Howells authored
    Modify the netfs_io_request struct to act as a point around which writes
    can be coordinated.  It represents and pins a range of pages that need
    writing and a list of regions of dirty data in that range of pages.
    
    If RMW is required, the original data can be downloaded into the bounce
    buffer, decrypted if necessary, the modifications made, then the modified
    data can be reencrypted/recompressed and sent back to the server.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
    cc: linux-cachefs@redhat.com
    cc: linux-fsdevel@vger.kernel.org
    cc: linux-mm@kvack.org
    16af134c
netfs.h 9.64 KB