• Nicholas Bellinger's avatar
    target: Make spc_get_write_same_sectors return sector_t · ffe00675
    Nicholas Bellinger authored
    We already expect TFO->get_blocks() to return sector_t for zero value case
    when doing WRITE_SAME to the end of the backend device, so go ahead and return
    sector_t from spc_get_write_same_sectors() to handle this case properly.
    
    Also, update the single iblock_execute_write_same() caller of this code.
    
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Martin K. Petersen <martin.petersen@oracle.com>
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    ffe00675
target_core_iblock.c 18.8 KB