mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
dm space map metadata: fix sm_bootstrap_get_count()
Must set 'result' accordingly rather than return it. Signed-off-by: Joe Thornber <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
This commit is contained in:
parent
c1c6156fe4
commit
02717d9855
1 changed files with 3 additions and 1 deletions
|
|
@ -583,7 +583,9 @@ static int sm_bootstrap_get_count(struct dm_space_map *sm, dm_block_t b,
|
|||
{
|
||||
struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm);
|
||||
|
||||
return b < smm->begin ? 1 : 0;
|
||||
*result = (b < smm->begin) ? 1 : 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sm_bootstrap_count_is_more_than_one(struct dm_space_map *sm,
|
||||
|
|
|
|||
Loading…
Reference in a new issue