Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139701
b: refs/heads/master
c: e562aeb
h: refs/heads/master
i:
  139699: f855638
v: v3
  • Loading branch information
Tony Battersby authored and Linus Torvalds committed Apr 3, 2009
1 parent cae5b5c commit 0a7a692
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 40e8a10de2c9f87e892dcd5a6f9d1b208329ffea
refs/heads/master: e562aebc6ccd4385cbbf24debe88ab4bb500c5b4
6 changes: 4 additions & 2 deletions trunk/ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,14 @@ static void shm_get_stat(struct ipc_namespace *ns, unsigned long *rss,
in_use = shm_ids(ns).in_use;

for (total = 0, next_id = 0; total < in_use; next_id++) {
struct kern_ipc_perm *ipc;
struct shmid_kernel *shp;
struct inode *inode;

shp = idr_find(&shm_ids(ns).ipcs_idr, next_id);
if (shp == NULL)
ipc = idr_find(&shm_ids(ns).ipcs_idr, next_id);
if (ipc == NULL)
continue;
shp = container_of(ipc, struct shmid_kernel, shm_perm);

inode = shp->shm_file->f_path.dentry->d_inode;

Expand Down

0 comments on commit 0a7a692

Please sign in to comment.