• Konrad Rzeszutek Wilk's avatar
    xen/blkback: Squash the discard support for 'file' and 'phy' type. · 4dae7670
    Konrad Rzeszutek Wilk authored
    The only reason for the distinction was for the special case of
    'file' (which is assumed to be loopback device), was to reach inside
    the loopback device, find the underlaying file, and call fallocate on it.
    Fortunately "xen-blkback: convert hole punching to discard request on
    loop devices" removes that use-case and we now based the discard
    support based on blk_queue_discard(q) and extract all appropriate
    parameters from the 'struct request_queue'.
    
    CC: Li Dongyang <lidongyang@novell.com>
    Acked-by: default avatarJan Beulich <JBeulich@suse.com>
    [v1: Dropping pointless initializer and keeping blank line]
    [v2: Remove the kfree as it is not used anymore]
    Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    4dae7670
xenbus.c 19 KB