Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269299
b: refs/heads/master
c: ab067e9
h: refs/heads/master
i:
  269297: dc7dabb
  269295: 201300e
v: v3
  • Loading branch information
Vasiliy Kulikov authored and Pekka Enberg committed Sep 27, 2011
1 parent 5921fd7 commit 165e131
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d20bbfab01802e195a50435940f7e4aa747c217c
refs/heads/master: ab067e99d22ec78ff646de1283348729d1aa66d4
2 changes: 1 addition & 1 deletion trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -4579,7 +4579,7 @@ static const struct file_operations proc_slabstats_operations = {

static int __init slab_proc_init(void)
{
proc_create("slabinfo",S_IWUSR|S_IRUGO,NULL,&proc_slabinfo_operations);
proc_create("slabinfo",S_IWUSR|S_IRUSR,NULL,&proc_slabinfo_operations);
#ifdef CONFIG_DEBUG_SLAB_LEAK
proc_create("slab_allocators", 0, NULL, &proc_slabstats_operations);
#endif
Expand Down
7 changes: 4 additions & 3 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -4386,11 +4386,12 @@ struct slab_attribute {
};

#define SLAB_ATTR_RO(_name) \
static struct slab_attribute _name##_attr = __ATTR_RO(_name)
static struct slab_attribute _name##_attr = \
__ATTR(_name, 0400, _name##_show, NULL)

#define SLAB_ATTR(_name) \
static struct slab_attribute _name##_attr = \
__ATTR(_name, 0644, _name##_show, _name##_store)
__ATTR(_name, 0600, _name##_show, _name##_store)

static ssize_t slab_size_show(struct kmem_cache *s, char *buf)
{
Expand Down Expand Up @@ -5231,7 +5232,7 @@ static const struct file_operations proc_slabinfo_operations = {

static int __init slab_proc_init(void)
{
proc_create("slabinfo", S_IRUGO, NULL, &proc_slabinfo_operations);
proc_create("slabinfo", S_IRUSR, NULL, &proc_slabinfo_operations);
return 0;
}
module_init(slab_proc_init);
Expand Down

0 comments on commit 165e131

Please sign in to comment.