Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97803
b: refs/heads/master
c: b66862f
h: refs/heads/master
i:
  97801: aba46f3
  97799: 8f9fe39
v: v3
  • Loading branch information
Pavel Emelyanov authored and Linus Torvalds committed Jun 6, 2008
1 parent 6b8a2ea commit a9cf002
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 93b071139a956e51c98cdefd50a47981a4eb852e
refs/heads/master: b66862f7663332aa1ecb3ebda4086360ddb8befc
8 changes: 6 additions & 2 deletions trunk/security/device_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,14 @@ struct dev_cgroup {
spinlock_t lock;
};

static inline struct dev_cgroup *css_to_devcgroup(struct cgroup_subsys_state *s)
{
return container_of(s, struct dev_cgroup, css);
}

static inline struct dev_cgroup *cgroup_to_devcgroup(struct cgroup *cgroup)
{
return container_of(cgroup_subsys_state(cgroup, devices_subsys_id),
struct dev_cgroup, css);
return css_to_devcgroup(cgroup_subsys_state(cgroup, devices_subsys_id));
}

struct cgroup_subsys devices_subsys;
Expand Down

0 comments on commit a9cf002

Please sign in to comment.