diff options
author | Chris Zankel <chris@zankel.net> | 2009-04-03 05:29:05 -0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2009-04-03 05:29:05 -0400 |
commit | 65127d28e312bb6b38ce84a7bb71d762ef63ad4c (patch) | |
tree | d5fdf52a2d0731f7fab0ce0ed394faac50b04fbc /ipc/shm.c | |
parent | b8bb76713ec50df2f11efee386e16f93d51e1076 (diff) | |
parent | 8fe74cf053de7ad2124a894996f84fa890a81093 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into merge
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -555,12 +555,14 @@ static void shm_get_stat(struct ipc_namespace *ns, unsigned long *rss, | |||
555 | in_use = shm_ids(ns).in_use; | 555 | in_use = shm_ids(ns).in_use; |
556 | 556 | ||
557 | for (total = 0, next_id = 0; total < in_use; next_id++) { | 557 | for (total = 0, next_id = 0; total < in_use; next_id++) { |
558 | struct kern_ipc_perm *ipc; | ||
558 | struct shmid_kernel *shp; | 559 | struct shmid_kernel *shp; |
559 | struct inode *inode; | 560 | struct inode *inode; |
560 | 561 | ||
561 | shp = idr_find(&shm_ids(ns).ipcs_idr, next_id); | 562 | ipc = idr_find(&shm_ids(ns).ipcs_idr, next_id); |
562 | if (shp == NULL) | 563 | if (ipc == NULL) |
563 | continue; | 564 | continue; |
565 | shp = container_of(ipc, struct shmid_kernel, shm_perm); | ||
564 | 566 | ||
565 | inode = shp->shm_file->f_path.dentry->d_inode; | 567 | inode = shp->shm_file->f_path.dentry->d_inode; |
566 | 568 | ||