• K
    xen/blkback: Squash the discard support for 'file' and 'phy' type. · 4dae7670
    Konrad Rzeszutek Wilk 提交于
    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: NJan 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: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    4dae7670
common.h 9.3 KB