• N
    1/2 splice: dont steal · 485ddb4b
    Nick Piggin 提交于
    Stealing pages with splice is problematic because we cannot just insert
    an uptodate page into the pagecache and hope the filesystem can take care
    of it later.
    
    We also cannot just ClearPageUptodate, then hope prepare_write does not
    write anything into the page, because I don't think prepare_write gives
    that guarantee.
    
    Remove support for SPLICE_F_MOVE for now. If we really want to bring it
    back, we might be able to do so with a the new filesystem buffered write
    aops APIs I'm working on. If we really don't want to bring it back, then
    we should decide that sooner rather than later, and remove the flag and
    all the stealing infrastructure before anybody starts using it.
    Signed-off-by: NNick Piggin <npiggin@suse.de>
    Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
    485ddb4b
splice.c 35.7 KB