projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1c6156
)
dm space map metadata: fix sm_bootstrap_get_count()
author
Joe Thornber
<ejt@redhat.com>
Mon, 1 Dec 2014 14:38:11 +0000
(14:38 +0000)
committer
Mike Snitzer
<snitzer@redhat.com>
Tue, 2 Dec 2014 15:25:06 +0000
(10:25 -0500)
Must set 'result' accordingly rather than return it.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/persistent-data/dm-space-map-metadata.c
patch
|
blob
|
history
diff --git
a/drivers/md/persistent-data/dm-space-map-metadata.c
b/drivers/md/persistent-data/dm-space-map-metadata.c
index f4e22bcc7fb8c6ad79d20cbb03e82093ed5a7d13..e8a9042988871c2fcfb12b8a85c20b8c8a4629c3 100644
(file)
--- a/
drivers/md/persistent-data/dm-space-map-metadata.c
+++ b/
drivers/md/persistent-data/dm-space-map-metadata.c
@@
-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,