block: loop: enable loop partiton scanning

PD#168231: block: loop: enable loop partiton scanning

If max_part is given, partition scanning is globally
enabled for loop devices.

Change-Id: I7a8ca59eff85cf9ee97264c3d8ae8dceb198cf32
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
This commit is contained in:
Ao Xu
2018-07-03 19:29:16 +08:00
committed by Yixun Lan
parent ad2d480821
commit 116bf34754

View File

@@ -83,7 +83,11 @@
static DEFINE_IDR(loop_index_idr);
static DEFINE_MUTEX(loop_index_mutex);
#ifdef CONFIG_AMLOGIC_MODIFY
static int max_part = 4;
#else
static int max_part;
#endif
static int part_shift;
static int transfer_xor(struct loop_device *lo, int cmd,