• J
    [SG] Get rid of __sg_mark_end() · c46f2334
    Jens Axboe 提交于
    sg_mark_end() overwrites the page_link information, but all users want
    __sg_mark_end() behaviour where we just set the end bit. That is the most
    natural way to use the sg list, since you'll fill it in and then mark the
    end point.
    
    So change sg_mark_end() to only set the termination bit. Add a sg_magic
    debug check as well, and clear a chain pointer if it is set.
    Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
    c46f2334
ll_rw_blk.c 108.1 KB