[RAMEN9610-21160]loop: set max_part to 4
authordukhyun kwon <d_hyun.kwon@samsung.com>
Fri, 3 Jan 2020 10:32:00 +0000 (19:32 +0900)
committerrobot <robot@samsung.com>
Tue, 7 Jan 2020 17:59:47 +0000 (02:59 +0900)
If the value is zero, loop driver doesn't permit
partition rescan, so ioctl with BLKRRPART would fail.
Now we want to enable it.

Change-Id: Ife77b8703eb33f507a531da8110d7b773c0dfdfd
Signed-off-by: dukhyun kwon <d_hyun.kwon@samsung.com>
drivers/block/loop.c

index 24a3fb35614f2d6d194416e9ddd6cfa2ba58b636..f0383d8ce84aaeacfe8c838d268dc1c3d4d6e739 100644 (file)
@@ -84,7 +84,7 @@ static DEFINE_IDR(loop_index_idr);
 static DEFINE_MUTEX(loop_index_mutex);
 static DEFINE_MUTEX(loop_ctl_mutex);
 
-static int max_part;
+static int max_part = 4;
 static int part_shift;
 
 static int transfer_xor(struct loop_device *lo, int cmd,