git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Verify the return value for warn_unused_result functions
[zfs.git]
/
module
/
zfs
/
space_map.c
diff --git
a/module/zfs/space_map.c
b/module/zfs/space_map.c
index
1ce7b2a
..
9c0cdb6
100644
(file)
--- a/
module/zfs/space_map.c
+++ b/
module/zfs/space_map.c
@@
-134,7
+134,7
@@
space_map_add(space_map_t *sm, uint64_t start, uint64_t size)
avl_remove(sm->sm_pp_root, ss_after);
ss = ss_after;
} else {
avl_remove(sm->sm_pp_root, ss_after);
ss = ss_after;
} else {
- ss = kmem_alloc(sizeof (*ss), KM_
SLEEP
);
+ ss = kmem_alloc(sizeof (*ss), KM_
PUSHPAGE
);
ss->ss_start = start;
ss->ss_end = end;
avl_insert(&sm->sm_root, ss, where);
ss->ss_start = start;
ss->ss_end = end;
avl_insert(&sm->sm_root, ss, where);
@@
-181,7
+181,7
@@
space_map_remove(space_map_t *sm, uint64_t start, uint64_t size)
avl_remove(sm->sm_pp_root, ss);
if (left_over && right_over) {
avl_remove(sm->sm_pp_root, ss);
if (left_over && right_over) {
- newseg = kmem_alloc(sizeof (*newseg), KM_
SLEEP
);
+ newseg = kmem_alloc(sizeof (*newseg), KM_
PUSHPAGE
);
newseg->ss_start = end;
newseg->ss_end = ss->ss_end;
ss->ss_end = start;
newseg->ss_start = end;
newseg->ss_end = ss->ss_end;
ss->ss_end = start;
@@
-551,7
+551,7
@@
space_map_ref_add_node(avl_tree_t *t, uint64_t offset, int64_t refcnt)
{
space_ref_t *sr;
{
space_ref_t *sr;
- sr = kmem_alloc(sizeof (*sr), KM_
SLEEP
);
+ sr = kmem_alloc(sizeof (*sr), KM_
PUSHPAGE
);
sr->sr_offset = offset;
sr->sr_refcnt = refcnt;
sr->sr_offset = offset;
sr->sr_refcnt = refcnt;