|
@@ -110,13 +110,7 @@ static int _add_entry(struct my_tree *tree, u64 s, int32_t tag,
|
|
return 0;
|
|
return 0;
|
|
} else {
|
|
} else {
|
|
struct pnfs_inval_tracking *new;
|
|
struct pnfs_inval_tracking *new;
|
|
- if (storage)
|
|
|
|
- new = storage;
|
|
|
|
- else {
|
|
|
|
- new = kmalloc(sizeof(*new), GFP_NOFS);
|
|
|
|
- if (!new)
|
|
|
|
- return -ENOMEM;
|
|
|
|
- }
|
|
|
|
|
|
+ new = storage;
|
|
new->it_sector = s;
|
|
new->it_sector = s;
|
|
new->it_tags = (1 << tag);
|
|
new->it_tags = (1 << tag);
|
|
list_add(&new->it_link, &pos->it_link);
|
|
list_add(&new->it_link, &pos->it_link);
|