staging: exfat: properly support discard in clr_alloc_bitmap()
authorAndrea Righi <andrea.righi@canonical.com>
Thu, 5 Dec 2019 15:29:13 +0000 (16:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 09:56:53 +0000 (10:56 +0100)
commit1184fd9966702a5a1cea73bdb6fe646b961c387c
tree58498b282abd5949ca779210d9d90669043c88fc
parent7d42b7961b9198efc75ee5192eab7d03e691d692
staging: exfat: properly support discard in clr_alloc_bitmap()

Currently the discard code in clr_alloc_bitmap() is just dead code.
Move code around so that the discard operation is properly attempted
when enabled.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Link: https://lore.kernel.org/r/20191205152913.GJ3276@xps-13
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/exfat/exfat_core.c