Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 144ab840 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "md: Enable discard option for dm-req-crypt based devices"

parents c9c17af0 721523cc
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1267,10 +1267,11 @@ static int req_crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
	BUG_ON(!req_scatterlist_pool);

	/*
	 * If underlying device supports flush, mapped target should
	 * also allow it
	 * If underlying device supports flush/discard, mapped target
	 * should also allow it
	 */
	ti->num_flush_bios = 1;
	ti->num_discard_bios = 1;

	err = 0;
	DMINFO("%s: Mapping block_device %s to dm-req-crypt ok!\n",