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>
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,