block/partitions/mac.c: obey the state->limit constraint
authorMing Lei <[email protected]>
Thu, 28 Feb 2013 01:05:18 +0000 (17:05 -0800)
committerLinus Torvalds <[email protected]>
Thu, 28 Feb 2013 03:10:21 +0000 (19:10 -0800)
commit06004e6eebdaf101a0f9b533fac77b5768d2c09c
tree5a867e6e20c7fb468ba4d6b7d5501fded8b174f1
parent8b8a6e1881be8d73b7a98f84ccec61e624ec5cac
block/partitions/mac.c: obey the state->limit constraint

It isn't necessary to read the information of partitions whose number is
equal and more than state->limit since only maximum state->limit
partitions will be added inside rescan_partitions().

That is also what other kind of partitions are doing.

Signed-off-by: Ming Lei <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Yasuaki Ishimatsu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
block/partitions/mac.c