Skip to content

Commit

Permalink
SLAB: Move two remaining SLAB specific definitions to slab_def.h
Browse files Browse the repository at this point in the history
Two definitions remained in slab.h that are particular to the SLAB allocator.
Move to slab_def.h

Signed-off-by: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed May 17, 2007
1 parent 9fbf09a commit 3ca12ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/linux/slab.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,6 @@ extern void *__kmalloc_node_track_caller(size_t, gfp_t, int, void *);

#endif /* DEBUG_SLAB */

extern const struct seq_operations slabinfo_op;
ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *);

#endif /* __KERNEL__ */
#endif /* _LINUX_SLAB_H */

3 changes: 3 additions & 0 deletions include/linux/slab_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,7 @@ static inline void *kmalloc_node(size_t size, gfp_t flags, int node)

#endif /* CONFIG_NUMA */

extern const struct seq_operations slabinfo_op;
ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *);

#endif /* _LINUX_SLAB_DEF_H */

0 comments on commit 3ca12ee

Please sign in to comment.