Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97831
b: refs/heads/master
c: 979b0fe
h: refs/heads/master
i:
  97829: 9e9f076
  97827: d56d12f
  97823: 385df5b
v: v3
  • Loading branch information
Jeff Layton authored and Linus Torvalds committed Jun 6, 2008
1 parent 4167899 commit 4abeb65
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef421be741a3e56cb89088a7dd4f73cc38739d1b
refs/heads/master: 979b0fea2d9ae5d57237a368d571cbc84655fba6
11 changes: 11 additions & 0 deletions trunk/include/linux/slab.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,17 @@ static inline void *kzalloc(size_t size, gfp_t flags)
return kmalloc(size, flags | __GFP_ZERO);
}

/**
* kzalloc_node - allocate zeroed memory from a particular memory node.
* @size: how many bytes of memory are required.
* @flags: the type of memory to allocate (see kmalloc).
* @node: memory node from which to allocate
*/
static inline void *kzalloc_node(size_t size, gfp_t flags, int node)
{
return kmalloc_node(size, flags | __GFP_ZERO, node);
}

#ifdef CONFIG_SLABINFO
extern const struct seq_operations slabinfo_op;
ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *);
Expand Down

0 comments on commit 4abeb65

Please sign in to comment.