block: loop: enable loop partiton scanning
authorAo Xu <ao.xu@amlogic.com>
Tue, 3 Jul 2018 11:29:16 +0000 (19:29 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Wed, 18 Jul 2018 09:20:22 +0000 (02:20 -0700)
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>
drivers/block/loop.c

index ff1c4d7aa025b87813f40c175ce7e42c6d67aacb..16dbeae1e1d0d36573f7b7afe276352598a1b924 100644 (file)
 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,